diff --git a/gtk2_ardour/level_meter.cc b/gtk2_ardour/level_meter.cc index 35a4dd8f31..77dbae53f8 100644 --- a/gtk2_ardour/level_meter.cc +++ b/gtk2_ardour/level_meter.cc @@ -49,20 +49,15 @@ LevelMeterBase::LevelMeterBase (Session* s, PBD::EventLoop::InvalidationRecord* , regular_meter_width (6) , meter_length (0) , thin_meter_width(2) + , max_peak (minus_infinity()) + , meter_type (MeterPeak) + , color_changed (false) { set_session (s); + Config->ParameterChanged.connect (_parameter_connection, parent_invalidator, boost::bind (&LevelMeterBase::parameter_changed, this, _1), gui_context()); ARDOUR_UI::config()->ParameterChanged.connect (sigc::mem_fun(*this, &LevelMeterBase::parameter_changed)); - UI::instance()->theme_changed.connect (sigc::mem_fun(*this, &LevelMeterBase::on_theme_changed)); ColorsChanged.connect (sigc::mem_fun (*this, &LevelMeterBase::color_handler)); - max_peak = minus_infinity(); - meter_type = MeterPeak; -} - -void -LevelMeterBase::on_theme_changed() -{ - style_changed = true; } LevelMeterBase::~LevelMeterBase () diff --git a/gtk2_ardour/level_meter.h b/gtk2_ardour/level_meter.h index b6aec1dd78..5b8668eb58 100644 --- a/gtk2_ardour/level_meter.h +++ b/gtk2_ardour/level_meter.h @@ -121,8 +121,6 @@ class LevelMeterBase : public ARDOUR::SessionHandlePtr, virtual public sigc::tra void configuration_changed (ARDOUR::ChanCount in, ARDOUR::ChanCount out); void meter_type_changed (ARDOUR::MeterType); - void on_theme_changed (); - bool style_changed; bool color_changed; void color_handler (); };