13
0

fader+meter: update numeric display bg on style change

This commit is contained in:
Robin Gareus 2014-08-30 04:17:10 +02:00
parent 5a688b672c
commit 8e3b1c17c1
2 changed files with 9 additions and 0 deletions

View File

@ -1056,6 +1056,13 @@ GainMeter::meter_ticks2_expose (GdkEventExpose *ev)
return meter_expose_ticks(ev, _route->meter_type(), _types, &meter_ticks2_area);
}
void
GainMeter::on_style_changed (const Glib::RefPtr<Gtk::Style>&)
{
gain_display.queue_draw();
peak_display.queue_draw();
}
boost::shared_ptr<PBD::Controllable>
GainMeterBase::get_controllable()
{
@ -1121,6 +1128,7 @@ GainMeter::meter_configuration_changed (ChanCount c)
setup_meters();
meter_clear_pattern_cache(4);
on_style_changed(Glib::RefPtr<Gtk::Style>());
}
void

View File

@ -217,6 +217,7 @@ class GainMeter : public GainMeterBase, public Gtk::VBox
gint meter_metrics_expose (GdkEventExpose *);
gint meter_ticks1_expose (GdkEventExpose *);
gint meter_ticks2_expose (GdkEventExpose *);
void on_style_changed (const Glib::RefPtr<Gtk::Style>&);
private: