summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_actions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r--gtk2_ardour/editor_actions.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc
index 7ff4594743..13b4769111 100644
--- a/gtk2_ardour/editor_actions.cc
+++ b/gtk2_ardour/editor_actions.cc
@@ -17,10 +17,15 @@ using namespace ActionManager;
void
Editor::register_actions ()
{
- /* add named actions for the editor */
Glib::RefPtr<ActionGroup> editor_actions = ActionGroup::create (X_("Editor"));
+ /* start with actions shared between all top level (major) windows */
+
+ merge_actions (editor_actions, ARDOUR_UI::instance()::get_common_actions());
+
+ /* add named actions for the editor */
+
register_action (editor_actions, "toggle-xfades-active", _("toggle xfades active"), mem_fun(*this, &Editor::toggle_xfades_active));
register_action (editor_actions, "playhead-to-next-region-start", _("playhead to next region start"), bind (mem_fun(*this, &Editor::cursor_to_next_region_point), playhead_cursor, RegionPoint (Start)));