summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mixer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-28 21:29:36 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-28 21:29:36 +0000
commit8d29a1ce20d92f560c1d504496001ad77a604bed (patch)
tree74faa8fb7debbabd8a489f01806e4c920e056cf0 /gtk2_ardour/editor_mixer.cc
parent5c2bc0c03b5d379301c4924e067c50376e9ba11b (diff)
Remember editor mixer size setting across close and reopen. Fixes #3624.
git-svn-id: svn://localhost/ardour2/branches/3.0@8354 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mixer.cc')
-rw-r--r--gtk2_ardour/editor_mixer.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc
index 5f321c7931..ec71892235 100644
--- a/gtk2_ardour/editor_mixer.cc
+++ b/gtk2_ardour/editor_mixer.cc
@@ -156,6 +156,7 @@ Editor::create_editor_mixer ()
_session,
false);
current_mixer_strip->Hiding.connect (sigc::mem_fun(*this, &Editor::current_mixer_strip_hidden));
+ current_mixer_strip->WidthChanged.connect (sigc::mem_fun (*this, &Editor::mixer_strip_width_changed));
#ifdef GTKOSX
current_mixer_strip->WidthChanged.connect (sigc::mem_fun(*this, &Editor::ensure_all_elements_drawn));
@@ -237,7 +238,16 @@ 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_enum()));
+ node.add_property ("mixer-width", enum_2_string (editor_mixer_strip_width));
}
}
+void
+Editor::mixer_strip_width_changed ()
+{
+#ifdef GTKOSX
+ ensure_all_elements_drawn ();
+#endif
+
+ editor_mixer_strip_width = current_mixer_strip->get_width_enum ();
+}