From ed97a290db2c7c5e7bbc5ac3ac1a8917d13e22b5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 20 Mar 2019 11:12:06 -0700 Subject: [PATCH] make ::ardour_action_name() private to Bindings, because nothing else uses it and it semi-exposes the nonsense --- libs/gtkmm2ext/gtkmm2ext/bindings.h | 31 +++++++++++++++-------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/libs/gtkmm2ext/gtkmm2ext/bindings.h b/libs/gtkmm2ext/gtkmm2ext/bindings.h index f9c3aa7543..b8e029dabd 100644 --- a/libs/gtkmm2ext/gtkmm2ext/bindings.h +++ b/libs/gtkmm2ext/gtkmm2ext/bindings.h @@ -132,21 +132,6 @@ class LIBGTKMM2EXT_API Bindings { void save (XMLNode& root); void save_as_html (std::ostream&, bool) const; - /* GTK has the following position a Gtk::Action: - * - * accel_path: /GroupName/ActionName - * name: ActionName - * - * We want proper namespacing and we're not interested in - * the silly "extra" namespace. So in Ardour: - * - * accel_path: /GroupName/ActionName - * name: GroupName/ActionName - * - * This (static) method returns the "ardour" name for the action. - */ - static std::string ardour_action_name (Glib::RefPtr); - /* used for editing bindings */ void get_all_actions (std::vector& paths, std::vector& labels, @@ -177,6 +162,22 @@ class LIBGTKMM2EXT_API Bindings { KeybindingMap& get_keymap (Operation op); const KeybindingMap& get_keymap (Operation op) const; MouseButtonBindingMap& get_mousemap (Operation op); + + /* GTK has the following position a Gtk::Action: + * + * accel_path: /GroupName/ActionName + * name: ActionName + * + * We want proper namespacing and we're not interested in + * the silly "extra" namespace. So in Ardour: + * + * accel_path: /GroupName/ActionName + * name: GroupName/ActionName + * + * This (static) method returns the "ardour" name for the action. + */ + static std::string ardour_action_name (Glib::RefPtr); + }; } // namespace