diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-20 14:13:34 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-20 14:13:34 +0000 |
commit | ece809f1db3df116df2c767bade1861181e6889f (patch) | |
tree | 0e49960690adaab45900c5ce971a91c2353f76f7 /gtk2_ardour/editor_canvas.cc | |
parent | 37ece84ba6a1614b3620ffd2e4b32eee56e1719e (diff) |
Fix sizing problems with edit group tabs.
git-svn-id: svn://localhost/ardour2/branches/3.0@5224 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 9e7da30a89..c753ab50ac 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -41,6 +41,7 @@ #include "audio_time_axis.h" #include "editor_drag.h" #include "region_view.h" +#include "editor_group_tabs.h" #include "i18n.h" @@ -386,7 +387,13 @@ Editor::controls_layout_size_request (Requisition* req) } gint height = min ((gint) pos, (gint) (physical_screen_height - 600)); - gint width = max (edit_controls_vbox.get_width(), controls_layout.get_width()); + + gint w = edit_controls_vbox.get_width(); + if (_group_tabs->is_mapped()) { + w += _group_tabs->get_width (); + } + + gint width = max (w, controls_layout.get_width()); /* don't get too big. the fudge factors here are just guesses */ @@ -399,6 +406,9 @@ Editor::controls_layout_size_request (Requisition* req) if (req->width != width) { gint vbox_width = edit_controls_vbox.get_width(); + if (_group_tabs->is_mapped()) { + vbox_width += _group_tabs->get_width(); + } req->width = width; /* this one is important: it determines how big the layout thinks it really is, as |