summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/ardour_button.h')
-rw-r--r--gtk2_ardour/ardour_button.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_button.h b/gtk2_ardour/ardour_button.h
index 0cee4092ae..9157cc81fd 100644
--- a/gtk2_ardour/ardour_button.h
+++ b/gtk2_ardour/ardour_button.h
@@ -59,6 +59,12 @@ class ArdourButton : public CairoWidget
void set_active_state (Gtkmm2ext::ActiveState);
void set_visual_state (Gtkmm2ext::VisualState);
+ /* this is an API simplification for buttons
+ that only use the Active and Normal active states.
+ */
+ void set_active (bool);
+ bool get_active () { return active_state() != Gtkmm2ext::ActiveState (0); }
+
void set_elements (Element);
Element elements() const { return _elements; }