diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-27 01:33:02 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-27 01:33:02 +0200 |
commit | cf761d4f67d04970604948caa860ce193695dc1c (patch) | |
tree | 74bf88755b3e08aea99f318de917f0af4d513c3a /gtk2_ardour/mixer_group_tabs.cc | |
parent | 19c4bc8d83ea317ec2c600929dd3a7337cb9bd15 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/mixer_group_tabs.cc')
-rw-r--r-- | gtk2_ardour/mixer_group_tabs.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |