summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_dialog.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2015-04-02 02:41:49 +1100
committernick_m <mainsbridge@gmail.com>2015-04-02 02:41:49 +1100
commit35f69656e859cdd00ce28e29083788a91d3fbd5f (patch)
treeb53ca99b60eff69381ffc85a6011d56aea412535 /gtk2_ardour/ardour_dialog.h
parent9a4827374ca4e4c310d02adf65c727d92b56724c (diff)
Window focus handling fixes.
Many windows were not getting key events. Use magic focus infrastructure (built for widgets) to deliver key events via window focus in/out.
Diffstat (limited to 'gtk2_ardour/ardour_dialog.h')
-rw-r--r--gtk2_ardour/ardour_dialog.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/ardour_dialog.h b/gtk2_ardour/ardour_dialog.h
index d994c0a6d1..1224cbb00a 100644
--- a/gtk2_ardour/ardour_dialog.h
+++ b/gtk2_ardour/ardour_dialog.h
@@ -42,10 +42,9 @@ class ArdourDialog : public Gtk::Dialog, public ARDOUR::SessionHandlePtr
ArdourDialog (Gtk::Window& parent, std::string title, bool modal = false, bool use_separator = false);
~ArdourDialog();
- 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_delete_event (GdkEventAny*);
- bool on_key_press_event (GdkEventKey*);
void on_unmap ();
void on_show ();