diff options
author | Doug McLain <doug@nostar.net> | 2008-01-04 15:51:20 +0000 |
---|---|---|
committer | Doug McLain <doug@nostar.net> | 2008-01-04 15:51:20 +0000 |
commit | f7a174a59b091ca545bffbd5b1d1bcaced95285f (patch) | |
tree | 7be793584d53395261054ed2c7e15fd4469c81f6 /gtk2_ardour/mixer_strip.cc | |
parent | db1adb842a0daa1171a1927c2651b007e30ed5b4 (diff) |
Create a better Narrow MixerStrip, and fix a bug where when enough routes are added, the meter draws right overtop of the fader belt
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2826 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index edeb8f3442..9a3656661f 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -403,10 +403,6 @@ MixerStrip::set_width (Width w, void* owner) _width_owner = owner; - if (_width == w) { - return; - } - ensure_xml_node (); _width = w; @@ -460,7 +456,7 @@ MixerStrip::set_width (Width w, void* owner) ((Gtk::Label*)panners.pan_automation_style_button.get_child())->set_text (panners.short_astyle_string(_route->panner().automation_style())); ((Gtk::Label*)panners.pan_automation_state_button.get_child())->set_text (panners.short_astate_string(_route->panner().automation_state())); Gtkmm2ext::set_size_request_to_display_given_text (name_button, "longest label", 2, 2); - set_size_request (max (50, gpm.get_gm_width()), -1); + set_size_request (max (60, gpm.get_gm_width()), -1); break; } @@ -761,12 +757,14 @@ void MixerStrip::input_changed (IOChange change, void *src) { Gtkmm2ext::UI::instance()->call_slot (mem_fun(*this, &MixerStrip::update_input_display)); + set_width(_width, this); } void MixerStrip::output_changed (IOChange change, void *src) { Gtkmm2ext::UI::instance()->call_slot (mem_fun(*this, &MixerStrip::update_output_display)); + set_width(_width, this); } @@ -1225,5 +1223,6 @@ MixerStrip::meter_changed (void *src) } gpm.setup_meters (); + set_width(_width, this); } |