mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
amend 6aa6c2d, queue redraw for custom-LED change
This commit is contained in:
parent
6aa6c2d552
commit
edb86929f5
2 changed files with 13 additions and 1 deletions
|
|
@ -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 ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue