From 596daa2b8baf420a82254e2dce14a47ecf916fc0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 26 Apr 2007 23:21:53 +0000 Subject: fix mixer-strip-width-not-restored, hopefully forever git-svn-id: svn://localhost/ardour2/trunk@1753 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_mixer.cc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/editor_mixer.cc') diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc index e37c7c7fe3..95f59d46d5 100644 --- a/gtk2_ardour/editor_mixer.cc +++ b/gtk2_ardour/editor_mixer.cc @@ -20,6 +20,9 @@ #include #include #include + +#include + #include #include "editor.h" @@ -32,6 +35,7 @@ #include "i18n.h" using namespace Gtkmm2ext; +using namespace PBD; void Editor::editor_mixer_button_toggled () @@ -107,8 +111,8 @@ Editor::show_editor_mixer (bool yn) current_mixer_strip->set_embedded (true); current_mixer_strip->Hiding.connect (mem_fun(*this, &Editor::current_mixer_strip_hidden)); current_mixer_strip->GoingAway.connect (mem_fun(*this, &Editor::current_mixer_strip_removed)); - current_mixer_strip->set_width (editor_mixer_strip_width); - + current_mixer_strip->set_width (editor_mixer_strip_width, (void*) this); + global_hpacker.pack_start (*current_mixer_strip, Gtk::PACK_SHRINK ); global_hpacker.reorder_child (*current_mixer_strip, 0); @@ -355,3 +359,11 @@ Editor::session_going_away () session = 0; } + +void +Editor::maybe_add_mixer_strip_width (XMLNode& node) +{ + if (current_mixer_strip) { + node.add_property ("mixer-width", enum_2_string (current_mixer_strip->get_width())); + } +} -- cgit v1.2.3