diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-09-24 09:59:17 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-09-24 09:59:17 +0000 |
commit | 8b0e9befb9bf3297df76520db5f069a995ebf92c (patch) | |
tree | 2c664500bd580dff91407548a16b606d1e2aee2f /gtk2_ardour/editor_canvas.cc | |
parent | 91fea1066e60477b71077ca643252f794f1e3376 (diff) |
fix headers not resizing properly when all tracks set to minimum height, then expanded again, no need to redisplay tempo when altering ruler visibility (allocation takes care of that)
git-svn-id: svn://localhost/ardour2/branches/3.0@3801 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 1e26778135..2c728a4658 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -386,6 +386,8 @@ Editor::controls_layout_size_request (Requisition* req) if (req->width != width) { req->width = width; + time_button_event_box.set_size_request(edit_controls_vbox.get_width(), -1); + zoom_box.set_size_request(edit_controls_vbox.get_width(), -1); } gint height = min ( (gint) pos, (screen->get_height() - 400)); @@ -393,15 +395,13 @@ Editor::controls_layout_size_request (Requisition* req) req->height = height; } - if ((width != edit_controls_vbox.get_width()) || height != pos) { + if (width != edit_controls_vbox.get_width()) { /* this one is important: it determines how big the layout thinks it really is, as opposed to what it displays on the screen */ controls_layout.set_size (edit_controls_vbox.get_width(), pos ); controls_layout.set_size_request(edit_controls_vbox.get_width(), -1); - time_button_event_box.set_size_request(edit_controls_vbox.get_width(), -1); - zoom_box.set_size_request(edit_controls_vbox.get_width(), -1); } } |