Removed usage of deprecated gtkmm API.
authorTaybin Rutkin <taybin@taybin.com>
Thu, 8 Feb 2007 22:37:54 +0000 (22:37 +0000)
committerTaybin Rutkin <taybin@taybin.com>
Thu, 8 Feb 2007 22:37:54 +0000 (22:37 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1434 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/time_axis_view.cc

index 36bf40ae3615142fb4c3db15de44ee276845e3e4..e50bd32f4e2601c93924decff579baa2c7830092 100644 (file)
@@ -969,12 +969,10 @@ TimeAxisView::compute_controls_size_info ()
                buttons[i]->set_name ("TrackMuteButton");
        }
 
-       Gtk::Requisition req;
-
        one_row_table.attach (*buttons[0], 6, 7, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
        
        one_row_table.show_all ();
-       one_row_table.size_request (req);
+       Gtk::Requisition req(one_row_table.size_request ());
 
 
        // height required to show 1 row of buttons
@@ -990,7 +988,7 @@ TimeAxisView::compute_controls_size_info ()
        two_row_table.attach (*buttons[4], 8, 9, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
 
        two_row_table.show_all ();
-       two_row_table.size_request (req);
+       req = two_row_table.size_request ();
 
        // height required to show all normal buttons