summaryrefslogtreecommitdiff
path: root/gtk2_ardour/gain_meter.h
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2019-07-13 13:57:57 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2019-07-13 13:57:57 +0100
commit169e15483a505076286d423b868d5b68955589a8 (patch)
tree382ca5cead34e998f6b846750ccccf94c55325bf /gtk2_ardour/gain_meter.h
parentdc131da53b2603189dc0fb00109b77178c971fc4 (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.h')
-rw-r--r--gtk2_ardour/gain_meter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/gain_meter.h b/gtk2_ardour/gain_meter.h
index bbc8465d57..f1bfc8e57a 100644
--- a/gtk2_ardour/gain_meter.h
+++ b/gtk2_ardour/gain_meter.h
@@ -225,6 +225,7 @@ class GainMeter : public GainMeterBase, public Gtk::VBox
gint meter_ticks1_expose (GdkEventExpose *);
gint meter_ticks2_expose (GdkEventExpose *);
void on_style_changed (const Glib::RefPtr<Gtk::Style>&);
+ void redraw_metrics ();
private: