summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.cc
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2007-02-08 22:37:54 +0000
committerTaybin Rutkin <taybin@taybin.com>2007-02-08 22:37:54 +0000
commit092caa50f820ee8f83519bd7df9fb10b80fedf01 (patch)
tree08b4d2b5d7f062eab1e020c9d6a1af81133aca22 /gtk2_ardour/time_axis_view.cc
parent5365ea6c3f8f063725dabbdfd3be8453f06e4651 (diff)
Removed usage of deprecated gtkmm API.
git-svn-id: svn://localhost/ardour2/trunk@1434 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r--gtk2_ardour/time_axis_view.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc
index 36bf40ae36..e50bd32f4e 100644
--- a/gtk2_ardour/time_axis_view.cc
+++ b/gtk2_ardour/time_axis_view.cc
@@ -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