From cf761d4f67d04970604948caa860ce193695dc1c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 27 Sep 2015 01:33:02 +0200 Subject: fix mixer group-tab width - #6572 EditorGroupTabs are re-exposed in the idle-callback, widgets are packed and geometry is valid. Mixer_UI::redisplay_track_list() does not have this property. --- gtk2_ardour/mixer_group_tabs.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/mixer_group_tabs.cc') diff --git a/gtk2_ardour/mixer_group_tabs.cc b/gtk2_ardour/mixer_group_tabs.cc index 7d8bb99b48..e7d82ae708 100644 --- a/gtk2_ardour/mixer_group_tabs.cc +++ b/gtk2_ardour/mixer_group_tabs.cc @@ -83,7 +83,9 @@ MixerGroupTabs::compute_tabs () const } } - x += s->get_width (); + int ww = 0, wh = 0; + s->get_size_request (ww, wh); // widget may not be realized, get_width() is invalid. + x += ww; } if (tab.group) { -- cgit v1.2.3