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/step_entry.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/step_entry.cc')
-rw-r--r-- | gtk2_ardour/step_entry.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/step_entry.cc b/gtk2_ardour/step_entry.cc index 25edb120ae..18eaf6081a 100644 --- a/gtk2_ardour/step_entry.cc +++ b/gtk2_ardour/step_entry.cc @@ -88,9 +88,10 @@ StepEntry::StepEntry (StepEditor& seditor) , piano (0) , se (&seditor) { - register_actions (); load_bindings (); + register_actions (); + #if 0 /* set channel selector to first selected channel. if none are selected, it will remain at the value set in its @@ -588,7 +589,7 @@ StepEntry::register_actions () { /* add named actions for the step editor */ - Glib::RefPtr<ActionGroup> group = ActionManager::create_action_group (this, X_("StepEditing")); + Glib::RefPtr<ActionGroup> group = ActionManager::create_action_group (bindings, X_("StepEditing")); ActionManager::register_action (group, "insert-a", _("Insert Note A"), sigc::mem_fun (*this, &StepEntry::insert_a)); ActionManager::register_action (group, "insert-asharp", _("Insert Note A-sharp"), sigc::mem_fun (*this, &StepEntry::insert_asharp)); |