diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-02 18:12:39 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-02 18:12:39 +0200 |
commit | b184df3286599c3d31d97d264cae832550e55641 (patch) | |
tree | 840a44ced555a688b5610b9c4c2f2c8c88e49187 /gtk2_ardour/route_time_axis.cc | |
parent | eed95429305e9b99d228c4e14c575c2704e502f9 (diff) |
static global definition for track-header width
the track-header minimum width is defined by
the name-label (IFF the 2nd row fader is not visible,
but the fader is rather small by default and and grows)
track-header width in almost all cases is:
name-label width
+ width of three button (1 char each)
+ max size of all meters (if visible)
+ width of MIDI scroomer (if visible)
+ 2px table cellspacing (per column)
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 95a58013b4..53124723ef 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -432,10 +432,11 @@ 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); + // -5 = -2 for table border - 3 for padding ^^ + name_hbox.set_size_request(TimeAxisView::name_width_px - 5 - tnw, 0); } else { number_label.hide (); - name_hbox.set_size_request(100, 0); + name_hbox.set_size_request(TimeAxisView::name_width_px, 0); } } |