diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-12-11 05:06:26 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-12-11 05:06:26 -0500 |
commit | 685c4f89558b57f22371f3f3adb59c4ded254b8d (patch) | |
tree | a6ccc036a19ae3e3188e3540366259532e1b7bdf /gtk2_ardour/mixer_ui.cc | |
parent | e1b7a43139ae8be7c648d1fc49f3e6bb5d9d4c30 (diff) |
change action group owner pointer to be the relevant keybindings; reorder setting keybindings value and defining actions
The reorder is required so that the value of "bindings" has been set and is meaningful
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 37286e8e58..6a281e001f 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -114,8 +114,8 @@ Mixer_UI::Mixer_UI () , _strip_selection_change_without_scroll (false) , _selection (*this, *this) { - register_actions (); load_bindings (); + register_actions (); _content.set_data ("ardour-bindings", bindings); PresentationInfo::Change.connect (*this, invalidator (*this), boost::bind (&Mixer_UI::presentation_info_changed, this, _1), gui_context()); @@ -3203,7 +3203,7 @@ Mixer_UI::showing_spill_for (boost::shared_ptr<Stripable> s) const void Mixer_UI::register_actions () { - Glib::RefPtr<ActionGroup> group = ActionManager::create_action_group (this, X_("Mixer")); + Glib::RefPtr<ActionGroup> group = ActionManager::create_action_group (bindings, X_("Mixer")); ActionManager::register_action (group, "solo", _("Toggle Solo on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::solo_action)); ActionManager::register_action (group, "mute", _("Toggle Mute on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::mute_action)); |