Pack the summarizer in a vpaned instead of the edit_packer
authorSampo Savolainen <v2@iki.fi>
Wed, 17 Jun 2009 20:10:43 +0000 (20:10 +0000)
committerSampo Savolainen <v2@iki.fi>
Wed, 17 Jun 2009 20:10:43 +0000 (20:10 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5211 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor.cc

index 3498e6686b533b3e5db888010d5f13ccc900148e..9be36a0841423d64e66a33ddceca1e62ffbb4cdd 100644 (file)
@@ -519,8 +519,6 @@ Editor::Editor ()
        edit_packer.attach (controls_layout,         0, 2, 2, 3,    FILL,        FILL|EXPAND, 0, 0);
        /* main canvas */
        edit_packer.attach (track_canvas_event_box,  2, 3, 1, 3,    FILL|EXPAND, FILL|EXPAND, 0, 0);
-       /* summary widget at bottom */
-       edit_packer.attach (*_summary,               0, 3, 3, 4,    FILL|EXPAND, SHRINK, 0, 0);
 
        bottom_hbox.set_border_width (2);
        bottom_hbox.set_spacing (3);
@@ -747,7 +745,12 @@ Editor::Editor ()
 
        post_maximal_editor_width = 0;
        post_maximal_pane_position = 0;
-       edit_pane.pack1 (edit_packer, true, true);
+
+       VPaned *editor_summary_pane = manage(new VPaned());
+       editor_summary_pane->pack1(edit_packer);
+       editor_summary_pane->pack2(*_summary);
+
+       edit_pane.pack1 (*editor_summary_pane, true, true);
        edit_pane.pack2 (the_notebook, false, true);
        
        edit_pane.signal_size_allocate().connect (bind (mem_fun(*this, &Editor::pane_allocation_handler), static_cast<Paned*> (&edit_pane)));