mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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:
parent
61c11157c0
commit
7306568634
6 changed files with 26 additions and 14 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue