summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-07-03 07:36:15 +0200
committerRobin Gareus <robin@gareus.org>2013-07-10 15:27:06 +0200
commitaabe526df2c04a21ee8f61f88d4c515fa102d283 (patch)
treec71325898bace2a9a49433b934fb6c88f22c69bf /gtk2_ardour/route_time_axis.cc
parent95e163a466c1c48ae6695663772f9eca94de722a (diff)
update track-header layout - proper padding around meters
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index 6cb6d451a0..c2922e4f69 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -186,8 +186,11 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt)
} else {
gm.set_fader_name ("AudioBusFader");
}
-
- controls_hbox.pack_start(gm.get_level_meter(), false, false, 2);
+
+ Gtk::VBox *mtrbox = manage(new Gtk::VBox());
+ mtrbox->pack_start(gm.get_level_meter(), false, false, 2);
+ controls_hbox.pack_start(*mtrbox, false, false, 4);
+
_route->meter_change.connect (*this, invalidator (*this), bind (&RouteTimeAxisView::meter_changed, this), gui_context());
_route->input()->changed.connect (*this, invalidator (*this), boost::bind (&RouteTimeAxisView::io_changed, this, _1, _2), gui_context());
_route->output()->changed.connect (*this, invalidator (*this), boost::bind (&RouteTimeAxisView::io_changed, this, _1, _2), gui_context());
@@ -834,7 +837,7 @@ RouteTimeAxisView::show_selection (TimeSelection& ts)
void
RouteTimeAxisView::set_height (uint32_t h)
{
- int gmlen = h - 7;
+ int gmlen = h - 9;
bool height_changed = (height == 0) || (h != height);
int meter_width = 3;
@@ -2242,7 +2245,7 @@ RouteTimeAxisView::reset_meter ()
if (_route && _route->shared_peak_meter()->input_streams().n_total() == 1) {
meter_width = 6;
}
- gm.get_level_meter().setup_meters (height-7, meter_width);
+ gm.get_level_meter().setup_meters (height - 9, meter_width);
} else {
hide_meter ();
}