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.
This commit is contained in:
Ben Loftis 2014-08-28 14:25:19 -05:00
parent 61c11157c0
commit 7306568634
6 changed files with 26 additions and 14 deletions

View file

@ -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 ();