13
0

Merge branch 'ardour'

This commit is contained in:
Robin Gareus 2024-05-18 01:47:03 +02:00
commit c7da560052
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 9 additions and 0 deletions

View File

@ -380,6 +380,13 @@ GainMeterBase::setup_meters (int len)
meter_channels = route()->shared_peak_meter()->input_streams().n_total();
}
if (len == 0) {
assert (gain_slider);
Gtk::Requisition sz;
sz = gain_slider->size_request ();
len = gain_slider->orientation () == FaderWidget::VERT ? sz.height : sz.width;
}
switch (_width) {
case Wide:
//meter_ticks1_area.show();

View File

@ -52,6 +52,8 @@ public:
void set_tweaks (Tweaks);
Tweaks tweaks() const { return _tweaks; }
int orientation () const { return _orien; }
virtual void set_bg (Gtkmm2ext::Color) = 0;
virtual void set_fg (Gtkmm2ext::Color) = 0;
virtual void unset_bg () = 0;