diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-07 13:15:53 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-07 13:15:53 +0000 |
commit | 65c2782e6ed4bd7c5ee2c39dc9dece66a0bb4578 (patch) | |
tree | 2134adf2a983c6291f50980a3d7cfbb9502b080b /gtk2_ardour/editor_canvas.cc | |
parent | 10cb0a7646ae7da18e5e6f49b940a5e921a73b57 (diff) |
fix up horizontal sizing of the track controls area in the editor
git-svn-id: svn://localhost/ardour2/branches/3.0@9797 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 1066023e0d..f761cfd42b 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -334,10 +334,15 @@ Editor::track_canvas_size_allocated () void Editor::reset_controls_layout_width () { - gint w = edit_controls_vbox.get_width(); + GtkRequisition req; + gint w; + + edit_controls_vbox.size_request (req); + w = req.width; if (_group_tabs->is_mapped()) { - w += _group_tabs->get_width(); + _group_tabs->size_request (req); + w += req.width; } /* the controls layout has no horizontal scrolling, its visible |