diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-26 23:21:53 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-26 23:21:53 +0000 |
commit | 596daa2b8baf420a82254e2dce14a47ecf916fc0 (patch) | |
tree | 44d3a8fe9ce677d946bca4f7bfdf3edf56f4cedd /gtk2_ardour/editor_mixer.cc | |
parent | faf840b5a6b0c11ac6fb70a08cce0d0601d47b94 (diff) |
fix mixer-strip-width-not-restored, hopefully forever
git-svn-id: svn://localhost/ardour2/trunk@1753 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mixer.cc')
-rw-r--r-- | gtk2_ardour/editor_mixer.cc | 16 |
1 files changed, 14 insertions, 2 deletions
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 <glibmm/miscutils.h> #include <gtkmm2ext/utils.h> #include <gtkmm2ext/window_title.h> + +#include <pbd/enumwriter.h> + #include <ardour/audioengine.h> #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())); + } +} |