Fix use of vertical space when the locations dialogue is expanded.
authorCarl Hetherington <carl@carlh.net>
Mon, 8 Nov 2010 17:34:20 +0000 (17:34 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 8 Nov 2010 17:34:20 +0000 (17:34 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7980 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/location_ui.cc

index 833eb73ae6d6b1980634b30b40d0c454fff4b091..0dd6d99d5c8c8f75e4cce42181f55789b46f3609 100644 (file)
@@ -687,20 +687,20 @@ LocationUI::LocationUI ()
        table->attach (loop_punch_box, 1, 2, table_row, table_row + 1);
        ++table_row;
 
-       vbox->pack_start (*table, true, true);
+       vbox->pack_start (*table, false, false);
        
        table = manage (new Table (3, 2));
        table->set_spacings (4);
        table->set_col_spacing (0, 32);
        table_row = 0;
 
-       table->attach (*manage (new Label ("")), 0, 2, table_row, table_row + 1);
+       table->attach (*manage (new Label ("")), 0, 2, table_row, table_row + 1, Gtk::SHRINK, Gtk::SHRINK);
        ++table_row;
        
        l = manage (new Label (_("<b>Markers (Including CD Index)</b>")));
        l->set_alignment (0, 0.5);
        l->set_use_markup (true);
-       table->attach (*l, 0, 2, table_row, table_row + 1);
+       table->attach (*l, 0, 2, table_row, table_row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);
        ++table_row;
 
        location_rows.set_name("LocationLocRows");
@@ -729,13 +729,13 @@ LocationUI::LocationUI ()
        table->set_col_spacing (0, 32);
        table_row = 0;
 
-       table->attach (*manage (new Label ("")), 0, 2, table_row, table_row + 1);
+       table->attach (*manage (new Label ("")), 0, 2, table_row, table_row + 1, Gtk::SHRINK, Gtk::SHRINK);
        ++table_row;
        
        l = manage (new Label (_("<b>Ranges (Including CD Track Ranges)</b>")));
        l->set_alignment (0, 0.5);
        l->set_use_markup (true);
-       table->attach (*l, 0, 2, table_row, table_row + 1);
+       table->attach (*l, 0, 2, table_row, table_row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);
        ++table_row;
 
        range_rows.set_name("LocationRangeRows");
@@ -760,7 +760,7 @@ LocationUI::LocationUI ()
        add_button_box->pack_start (add_location_button, true, true);
        add_button_box->pack_start (add_range_button, true, true);
 
-       vbox->pack_start (loc_range_panes);
+       vbox->pack_start (loc_range_panes, true, true);
        vbox->pack_start (*add_button_box, false, false);
 
        pack_start (*vbox);