change action group owner pointer to be the relevant keybindings; reorder setting...
[ardour.git] / gtk2_ardour / step_entry.cc
index 25edb120ae23dc2573664abcb93e05bfa9f4b7cb..18eaf6081ab0d0f49beee423d3a6ea98e950ed0b 100644 (file)
@@ -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));