diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-17 04:02:59 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-17 04:02:59 +0100 |
commit | edb86929f5faa04fae240b82feae9cfefe42f0c0 (patch) | |
tree | 674ab8553653284bf2598f2669cdef01ae2f1b3e /gtk2_ardour/ardour_button.cc | |
parent | 6aa6c2d552477741a85f1a8deea9babbd6c123a4 (diff) |
amend 6aa6c2d, queue redraw for custom-LED change
Diffstat (limited to 'gtk2_ardour/ardour_button.cc')
-rw-r--r-- | gtk2_ardour/ardour_button.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc index 921828c5bb..634fc4095f 100644 --- a/gtk2_ardour/ardour_button.cc +++ b/gtk2_ardour/ardour_button.cc @@ -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 (); +} |