diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-01-31 03:27:25 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-01-31 03:27:25 +0000 |
commit | 98046ce92dfe16bdff36f19b90731269b82275f0 (patch) | |
tree | 89b2450702578264a427a3789494b0723d38922a /gtk2_ardour/editor_mixer.cc | |
parent | 1de6e1a626a8aad8a3fee8ea4508645c3272896d (diff) |
remove editor mixer button, fix up editor mixer state save/restore
git-svn-id: svn://localhost/trunk/ardour2@306 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mixer.cc')
-rw-r--r-- | gtk2_ardour/editor_mixer.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc index ec1511f2a2..a61707f91b 100644 --- a/gtk2_ardour/editor_mixer.cc +++ b/gtk2_ardour/editor_mixer.cc @@ -26,13 +26,18 @@ #include "ardour_ui.h" #include "selection.h" #include "audio_time_axis.h" +#include "actions.h" #include "i18n.h" void Editor::editor_mixer_button_toggled () { - show_editor_mixer (editor_mixer_button.get_active()); + Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-mixer")); + if (act) { + Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act); + show_editor_mixer (tact->get_active()); + } } void @@ -230,7 +235,12 @@ Editor::current_mixer_strip_hidden () } } } - global_hpacker.remove (*current_mixer_strip); + + Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-mixer")); + if (act) { + Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act); + tact->set_active (false); + } } void |