13
0

amend 6aa6c2d, queue redraw for custom-LED change

This commit is contained in:
Robin Gareus 2015-03-17 04:02:59 +01:00
parent 6aa6c2d552
commit edb86929f5
2 changed files with 13 additions and 1 deletions

View File

@ -1194,3 +1194,15 @@ ArdourButton::add_elements (Element e)
_elements = (ArdourButton::Element) (_elements | e);
CairoWidget::set_dirty ();
}
void
ArdourButton::set_custom_led_color (uint32_t c, bool useit)
{
if (led_custom_color == c && use_custom_led_color == useit) {
return;
}
led_custom_color = c;
use_custom_led_color = useit;
CairoWidget::set_dirty ();
}

View File

@ -65,7 +65,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
void set_active_state (Gtkmm2ext::ActiveState);
void set_visual_state (Gtkmm2ext::VisualState);
void set_custom_led_color (uint32_t c, bool useit = true) { led_custom_color = c; use_custom_led_color = useit; }
void set_custom_led_color (const uint32_t c, const bool useit = true);
void set_act_on_release (bool onRelease) { _act_on_release = onRelease; }