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/time_axis_view.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/time_axis_view.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index 2ac021f4cb..13b0546d46 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -70,6 +70,7 @@ const double trim_handle_size = 6.0; /* pixels */ uint32_t TimeAxisView::button_height = 0; uint32_t TimeAxisView::extra_height = 0; int const TimeAxisView::_max_order = 512; +unsigned int TimeAxisView::name_width_px = 100; // TODO adjust with font-scaling on style-change PBD::Signal1<void,TimeAxisView*> TimeAxisView::CatchDeletion; Glib::RefPtr<Gtk::SizeGroup> TimeAxisView::controls_meters_size_group = Glib::RefPtr<Gtk::SizeGroup>(); @@ -134,7 +135,7 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie name_hbox.pack_end (name_label, true, true); // set min. track-header width if fader is not visible - name_hbox.set_size_request(100, 0); + name_hbox.set_size_request(name_width_px, 0); name_hbox.show (); name_label.show (); |