X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=blobdiff_plain;f=gtk2_ardour%2Feditor_actions.cc;h=9309bcaae1e0758122f1cffaa79488afc1e2711f;hp=294300d351fac59c4ce1dd870824d68a71c7d616;hb=5981b7f1b8bc85444d66ab0ffac2dee412dd21ea;hpb=605b7783ee34cbce671525523e7022105dd8259b diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index 294300d351..9309bcaae1 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -108,8 +108,8 @@ Editor::register_actions () { RefPtr act; - editor_actions = ActionManager::create_action_group (X_("Editor")); - editor_menu_actions = ActionManager::create_action_group (X_("EditorMenu")); + editor_actions = ActionManager::create_action_group (this, X_("Editor")); + editor_menu_actions = ActionManager::create_action_group (this, X_("EditorMenu")); /* non-operative menu items for menu bar */ @@ -458,7 +458,7 @@ Editor::register_actions () toggle_reg_sens (editor_actions, "sound-midi-notes", _("Sound Selected MIDI Notes"), sigc::mem_fun (*this, &Editor::toggle_sound_midi_notes)); - Glib::RefPtr zoom_actions = ActionManager::create_action_group (X_("Zoom")); + Glib::RefPtr zoom_actions = ActionManager::create_action_group (this, X_("Zoom")); RadioAction::Group zoom_group; radio_reg_sens (zoom_actions, zoom_group, "zoom-focus-left", _("Zoom Focus Left"), sigc::bind (sigc::mem_fun(*this, &Editor::zoom_focus_chosen), Editing::ZoomFocusLeft)); @@ -478,7 +478,7 @@ Editor::register_actions () act->set_sensitive (false); } - Glib::RefPtr mouse_mode_actions = ActionManager::create_action_group (X_("MouseMode")); + Glib::RefPtr mouse_mode_actions = ActionManager::create_action_group (this, X_("MouseMode")); RadioAction::Group mouse_mode_group; act = ActionManager::register_toggle_action (mouse_mode_actions, "set-mouse-mode-object-range", _("Smart Object Mode"), sigc::mem_fun (*this, &Editor::mouse_mode_object_range_toggled)); @@ -555,7 +555,7 @@ Editor::register_actions () ActionManager::register_action (editor_actions, X_("next-grid-choice"), _("Next Quantize Grid Choice"), sigc::mem_fun (*this, &Editor::next_grid_choice)); ActionManager::register_action (editor_actions, X_("prev-grid-choice"), _("Previous Quantize Grid Choice"), sigc::mem_fun (*this, &Editor::prev_grid_choice)); - Glib::RefPtr snap_actions = ActionManager::create_action_group (X_("Snap")); + Glib::RefPtr snap_actions = ActionManager::create_action_group (this, X_("Snap")); RadioAction::Group grid_choice_group; ActionManager::register_radio_action (snap_actions, grid_choice_group, X_("grid-type-thirtyseconds"), grid_type_strings[(int)GridTypeBeatDiv32].c_str(), (sigc::bind (sigc::mem_fun(*this, &Editor::grid_type_chosen), Editing::GridTypeBeatDiv32))); @@ -587,7 +587,7 @@ Editor::register_actions () /* RULERS */ - Glib::RefPtr ruler_actions = ActionManager::create_action_group (X_("Rulers")); + Glib::RefPtr ruler_actions = ActionManager::create_action_group (this, X_("Rulers")); ruler_tempo_action = Glib::RefPtr::cast_static (ActionManager::register_toggle_action (ruler_actions, X_("toggle-tempo-ruler"), _("Tempo"), sigc::bind (sigc::mem_fun(*this, &Editor::toggle_ruler_visibility), ruler_time_tempo))); ruler_meter_action = Glib::RefPtr::cast_static (ActionManager::register_toggle_action (ruler_actions, X_("toggle-meter-ruler"), _("Meter"), sigc::bind (sigc::mem_fun(*this, &Editor::toggle_ruler_visibility), ruler_time_meter))); ruler_range_action = Glib::RefPtr::cast_static (ActionManager::register_toggle_action (ruler_actions, X_("toggle-range-ruler"), _("Ranges"), sigc::bind (sigc::mem_fun(*this, &Editor::toggle_ruler_visibility), ruler_time_range_marker))); @@ -662,7 +662,7 @@ Editor::register_actions () /* REGION LIST */ - Glib::RefPtr rl_actions = ActionManager::create_action_group (X_("RegionList")); + Glib::RefPtr rl_actions = ActionManager::create_action_group (this, X_("RegionList")); RadioAction::Group sort_type_group; RadioAction::Group sort_order_group; @@ -1504,7 +1504,7 @@ Editor::reset_canvas_action_sensitivity (bool onoff) void Editor::register_region_actions () { - _region_actions = ActionManager::create_action_group (X_("Region")); + _region_actions = ActionManager::create_action_group (this, X_("Region")); /* PART 1: actions that operate on the selection, and for which the edit point type and location is irrelevant */