From 169e15483a505076286d423b868d5b68955589a8 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Sat, 13 Jul 2019 13:57:57 +0100 Subject: 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... :-( --- gtk2_ardour/gain_meter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk2_ardour/gain_meter.h') 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&); + void redraw_metrics (); private: -- cgit v1.2.3