hbox.set_spacing (2);
hbox.pack_start (*fader_vbox, true, true);
- set_width(Narrow);
-
Route* r;
if ((r = dynamic_cast<Route*> (_io.get())) != 0) {
- /*
+ /*
if we have a non-hidden route (ie. we're not the click or the auditioner),
pack some route-dependent stuff.
*/
- gain_display_box.pack_end (peak_display, true, true);
+ gain_display_box.pack_end (peak_display, true, true);
hbox.pack_end (meter_packer, true, true);
if (!r->hidden()) {
void
GainMeter::set_width (Width w, int len)
{
- switch (w) {
- case Wide:
- peak_display.show();
- break;
- case Narrow:
- peak_display.hide();
- break;
- }
-
_width = w;
setup_meters (len);
}
/* pack them backwards */
- if (_width == Wide) {
- meter_packer.pack_end (meter_metric_area, false, false);
- meter_metric_area.show_all ();
- }
+ meter_packer.pack_end (meter_metric_area, false, false);
+ meter_metric_area.show_all ();
int b = ARDOUR_UI::config()->canvasvar_MeterColorBase.get();
int m = ARDOUR_UI::config()->canvasvar_MeterColorMid.get();
_width_owner = owner;
- if (_width == w) {
- return;
- }
-
ensure_xml_node ();
_width = w;
((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;
}
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);
}
}
gpm.setup_meters ();
+ set_width(_width, this);
}