diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-12-10 08:33:31 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-12-10 08:34:01 -0500 |
commit | fc83d044f85872e55d7da02ff2a4bb6f8725714f (patch) | |
tree | 74f7caabeafc20b265723d4ff75f343f2233a863 /gtk2_ardour/actions.cc | |
parent | 00df619d2184ad6d46eda1b0964b7ac4ed2bffcd (diff) |
use ActionManager namespace, rather than ActionMap objects, and remove all per-context action maps
Diffstat (limited to 'gtk2_ardour/actions.cc')
-rw-r--r-- | gtk2_ardour/actions.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gtk2_ardour/actions.cc b/gtk2_ardour/actions.cc index da2a75fc93..ea39f4af8a 100644 --- a/gtk2_ardour/actions.cc +++ b/gtk2_ardour/actions.cc @@ -69,12 +69,6 @@ RelatedActions ActionManager::edit_point_in_region_sensitive_actions; RelatedActions ActionManager::rec_sensitive_actions; void -ActionManager::init () -{ - ui_manager = UIManager::create (); -} - -void ActionManager::load_menus (const string& menus_file) { std::string ui_file; @@ -178,7 +172,7 @@ ActionManager::toggle_config_state_foo (const char* group, const char* action, s void ActionManager::map_some_state (const char* group, const char* action, bool (RCConfiguration::*get)() const) { - Glib::RefPtr<Action> act = ActionManager::get_action (group, action); + Glib::RefPtr<Action> act = ActionManager::get_action (group, action, false); if (act) { Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act); @@ -201,7 +195,7 @@ ActionManager::map_some_state (const char* group, const char* action, bool (RCCo void ActionManager::map_some_state (const char* group, const char* action, bool (UIConfiguration::*get)() const) { - Glib::RefPtr<Action> act = ActionManager::get_action (group, action); + Glib::RefPtr<Action> act = ActionManager::get_action (group, action, false); if (act) { Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act); @@ -219,7 +213,7 @@ ActionManager::map_some_state (const char* group, const char* action, bool (UICo void ActionManager::map_some_state (const char* group, const char* action, sigc::slot<bool> get) { - Glib::RefPtr<Action> act = ActionManager::get_action (group, action); + Glib::RefPtr<Action> act = ActionManager::get_action (group, action, false); if (act) { Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act); |