summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-01 00:00:01 +0200
committerRobin Gareus <robin@gareus.org>2014-09-01 00:00:20 +0200
commitb012f2cd1825d2e25e706c35a61b8fbd0ee1af41 (patch)
treea16f6716bfccb79dfc153361b19b71bd2e3df358 /gtk2_ardour/route_time_axis.cc
parentb469cd217f2c205872310022202ab25a71b77169 (diff)
retain track-header width regardless of number-label.
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index cc25d85719..95a58013b4 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -432,8 +432,10 @@ RouteTimeAxisView::update_track_number_visibility ()
const int tnw = std::max(2u, _session->track_number_decimals()) * 8; // TODO 8 = max_width_of_digit_0_to_9()
number_label.set_size_request(3 + tnw, -1);
number_label.show ();
+ name_hbox.set_size_request(95 - tnw, 0);
} else {
number_label.hide ();
+ name_hbox.set_size_request(100, 0);
}
}