summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_button.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-06-13 23:50:07 +0200
committerRobin Gareus <robin@gareus.org>2014-06-14 00:22:32 +0200
commitbb2970e5e98e4ce4f3975d12a703aa87edf4f17b (patch)
tree3bdf6be0c2a7f7665a0e289f056ca10cd5acc827 /gtk2_ardour/ardour_button.h
parente977b659af1bbba244df43d15fd1c02e7f82fe78 (diff)
allow ardour button to handle focused keyboard events
Diffstat (limited to 'gtk2_ardour/ardour_button.h')
-rw-r--r--gtk2_ardour/ardour_button.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_button.h b/gtk2_ardour/ardour_button.h
index 18de7230d2..dd6337dcef 100644
--- a/gtk2_ardour/ardour_button.h
+++ b/gtk2_ardour/ardour_button.h
@@ -108,6 +108,9 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
void on_name_changed ();
bool on_enter_notify_event (GdkEventCrossing*);
bool on_leave_notify_event (GdkEventCrossing*);
+ bool on_focus_in_event (GdkEventFocus*);
+ bool on_focus_out_event (GdkEventFocus*);
+ bool on_key_release_event (GdkEventKey *);
void controllable_changed ();
PBD::ScopedConnection watch_connection;
@@ -168,6 +171,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
bool _fixed_diameter;
bool _distinct_led_click;
bool _hovering;
+ bool _focused;
static bool _flat_buttons;