summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-06-23 23:05:14 +0000
committerCarl Hetherington <carl@carlh.net>2009-06-23 23:05:14 +0000
commitacaf05db1dd1dee9bcd7d1be4258c00837b90267 (patch)
tree0821c3cff1e76b6161d2b5fa6053d9e8732d096f /gtk2_ardour/mixer_ui.cc
parent474bf32ae30b87dd7f9eb1b483464097209fb959 (diff)
Update mixer group tabs on strip width change. Don't display the mixer group tab menu if there's not a group involved.
git-svn-id: svn://localhost/ardour2/branches/3.0@5265 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r--gtk2_ardour/mixer_ui.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index 1c31f400ff..eb79d8042c 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -338,9 +338,7 @@ Mixer_UI::add_strip (RouteList& routes)
route->NameChanged.connect (bind (mem_fun(*this, &Mixer_UI::strip_name_changed), strip));
strip->GoingAway.connect (bind (mem_fun(*this, &Mixer_UI::remove_strip), strip));
-#ifdef GTKOSX
- strip->WidthChanged.connect (mem_fun(*this, &Mixer_UI::queue_draw_all_strips));
-#endif
+ strip->WidthChanged.connect (mem_fun(*this, &Mixer_UI::strip_width_changed));
strip->signal_button_release_event().connect (bind (mem_fun(*this, &Mixer_UI::strip_button_release_event), strip));
}
@@ -774,10 +772,12 @@ Mixer_UI::redisplay_track_list ()
_group_tabs->set_dirty ();
}
-#ifdef GTKOSX
void
-Mixer_UI::queue_draw_all_strips ()
+Mixer_UI::strip_width_changed ()
{
+ _group_tabs->set_dirty ();
+
+#ifdef GTKOSX
TreeModel::Children rows = track_model->children();
TreeModel::Children::iterator i;
long order;
@@ -795,8 +795,9 @@ Mixer_UI::queue_draw_all_strips ()
strip->queue_draw();
}
}
-}
#endif
+
+}
void
Mixer_UI::set_auto_rebinding( bool val )