diff options
author | David Robillard <d@drobilla.net> | 2007-04-29 17:23:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-29 17:23:11 +0000 |
commit | b3fe7cfc892f7d5978ad14eb81e9305fa9c14d13 (patch) | |
tree | 4c6617c0397fb1ad3bef1f5fced35fb64b022ccb /gtk2_ardour/editor_mixer.cc | |
parent | 490e18d80a22dda07bdf88dd440f7100897822de (diff) |
Merged with trunk R1761
git-svn-id: svn://localhost/ardour2/branches/midi@1762 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 de8e6b60dc..5804381102 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())); + } +} |