Use dedicated "show editor/mixer" actions
[ardour.git] / gtk2_ardour / mixer_ui.cc
index e3f8111ca6e3fe149d8f0d61bbfcf23cce735d88..6c7a72ca14f4c7cf4234ce9bbc45592d49998391 100644 (file)
@@ -2905,11 +2905,19 @@ Mixer_UI::showing_spill_for (boost::shared_ptr<Stripable> s) const
        return s == spilled_strip.lock();
 }
 
+void
+Mixer_UI::show_editor_window () const
+{
+       PublicEditor::instance().make_visible ();
+}
+
 void
 Mixer_UI::register_actions ()
 {
        Glib::RefPtr<ActionGroup> group = myactions.create_action_group (X_("Mixer"));
 
+       myactions.register_action (group, "show-editor", _("Show Editor"), sigc::mem_fun (*this, &Mixer_UI::show_editor_window));
+
        myactions.register_action (group, "solo", _("Toggle Solo on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::solo_action));
        myactions.register_action (group, "mute", _("Toggle Mute on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::mute_action));
        myactions.register_action (group, "recenable", _("Toggle Rec-enable on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::rec_enable_action));