summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_button.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-09 15:35:37 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-09 16:03:14 -0400
commitef6f0de5a31bd14a4d48e806b3b56b2845ebd690 (patch)
tree01d97a0d2b189302f0aeb362f2a0ffa4a9d94ead /gtk2_ardour/ardour_button.h
parent37aed5715b69428f86b169377f9597e563fff7df (diff)
extend ArdourButton API to allow independently setting fixed active/inactive colors
Diffstat (limited to 'gtk2_ardour/ardour_button.h')
-rw-r--r--gtk2_ardour/ardour_button.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_button.h b/gtk2_ardour/ardour_button.h
index 25986ccc0c..928f4a8355 100644
--- a/gtk2_ardour/ardour_button.h
+++ b/gtk2_ardour/ardour_button.h
@@ -104,7 +104,9 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
void set_image (const Glib::RefPtr<Gdk::Pixbuf>&);
- void set_fixed_colors (const uint32_t active_color, const uint32_t inactive_color);
+ void set_fixed_colors (const uint32_t active_color, const uint32_t inactive_color);
+ void set_active_color (const uint32_t active_color);
+ void set_inactive_color (const uint32_t inactive_color);
void set_fallthrough_to_parent(bool fall) { _fallthrough_to_parent = fall; }
@@ -172,7 +174,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
bool _distinct_led_click;
bool _hovering;
bool _focused;
- bool _fixed_colors_set;
+ int _fixed_colors_set;
bool _fallthrough_to_parent;
int _layout_ellipsize_width;
Pango::EllipsizeMode _ellipsis;