summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_button.h
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2014-08-28 14:25:19 -0500
committerBen Loftis <ben@harrisonconsoles.com>2014-08-28 14:25:19 -0500
commit730656863465250e8ed9f277cd5dd1409e9e46ac (patch)
treeed6115b2a2eff93b22f28ae5ce4f44731218a07d /gtk2_ardour/ardour_button.h
parent61c11157c0a8eabfeb6b3f1d01372b88342770ce (diff)
More fixes to ArdourButton actions.
Optionally allow events to fallthrough to parents, in particular for the DnDVBox case. Also allow the number_label to operate as a track selector.
Diffstat (limited to 'gtk2_ardour/ardour_button.h')
-rw-r--r--gtk2_ardour/ardour_button.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_button.h b/gtk2_ardour/ardour_button.h
index bb0cbfed1e..c6e38aff2e 100644
--- a/gtk2_ardour/ardour_button.h
+++ b/gtk2_ardour/ardour_button.h
@@ -96,7 +96,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_fallthrough_to_parent(bool fall) { _fallthrough_to_parent = fall; }
protected:
void render (cairo_t *, cairo_rectangle_t *);
@@ -154,6 +156,8 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
bool _focused;
bool _fixed_colors_set;
+ bool _fallthrough_to_parent;
+
void setup_led_rect ();
void set_colors ();
void color_handler ();