amend 6aa6c2d
, queue redraw for custom-LED change
This commit is contained in:
parent
6aa6c2d552
commit
edb86929f5
@ -1194,3 +1194,15 @@ ArdourButton::add_elements (Element e)
|
|||||||
_elements = (ArdourButton::Element) (_elements | e);
|
_elements = (ArdourButton::Element) (_elements | e);
|
||||||
CairoWidget::set_dirty ();
|
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_active_state (Gtkmm2ext::ActiveState);
|
||||||
void set_visual_state (Gtkmm2ext::VisualState);
|
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; }
|
void set_act_on_release (bool onRelease) { _act_on_release = onRelease; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user