diff options
author | John Emmas <johne53@tiscali.co.uk> | 2019-07-13 13:57:57 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2019-07-13 13:57:57 +0100 |
commit | 169e15483a505076286d423b868d5b68955589a8 (patch) | |
tree | 382ca5cead34e998f6b846750ccccf94c55325bf /gtk2_ardour/gain_meter.cc | |
parent | dc131da53b2603189dc0fb00109b77178c971fc4 (diff) |
Implement a derived function for 'GainMeter::redraw_metrics()'
I'm not sure why exactly but at this line in 'GainMeter::set_controls ()' :-
model_connections, invalidator (*this), boost::bind (&GainMeter::redraw_metrics, this), gui_context()
MSVC will not allow us to pass a base class function to boost::bind(). I tried explicitly specifying the base class and I also tried making the function public / making it virtual etc but the only thing which works is to implement a derived function.
It's somehow related to changing the signal from 'TypeChanged' to 'MeterTypeChanged' but I don't entirely understand why... :-(
Diffstat (limited to 'gtk2_ardour/gain_meter.cc')
-rw-r--r-- | gtk2_ardour/gain_meter.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index 35cb66407b..1b6d32f904 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -1117,3 +1117,9 @@ GainMeter::route_active_changed () meter_configuration_changed (_meter->input_streams ()); } } + +void +GainMeter::redraw_metrics () +{ + GainMeterBase::redraw_metrics (); +} |