make ArdourDialog and ArdourWindow call ::relay_key_press() which fixes the "not...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 6 May 2013 14:55:40 +0000 (10:55 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 6 May 2013 14:58:35 +0000 (10:58 -0400)
gtk2_ardour/ardour_dialog.cc
gtk2_ardour/ardour_dialog.h
gtk2_ardour/ardour_window.cc
gtk2_ardour/ardour_window.h

index 07d5d47d6b10a42c2bd00a8d291927a169e03f3f..8231289c5a361563ee4c0f61e7430c7782bc1317 100644 (file)
@@ -26,6 +26,7 @@
 #include "ardour_ui.h"
 #include "keyboard.h"
 #include "splash.h"
+#include "utils.h"
 
 using namespace std;
 using namespace Gtk;
@@ -58,6 +59,12 @@ ArdourDialog::~ArdourDialog ()
         }
 }
 
+bool
+ArdourDialog::on_key_press_event (GdkEventKey* ev)
+{
+       return relay_key_press (ev, this);
+}
+
 bool
 ArdourDialog::on_enter_notify_event (GdkEventCrossing *ev)
 {
index 1e01c8f625eeef84b0853150f2152f05449b2878..40472f20c07d6c2aac18716a79e14ad1dffc6389 100644 (file)
@@ -40,7 +40,8 @@ class ArdourDialog : public Gtk::Dialog, public ARDOUR::SessionHandlePtr
 
        bool on_enter_notify_event (GdkEventCrossing*);
        bool on_leave_notify_event (GdkEventCrossing*);
-        bool on_delete_event (GdkEventAny *);
+        bool on_delete_event (GdkEventAny*);
+        bool on_key_press_event (GdkEventKey*);
        void on_unmap ();
        void on_show ();
 
index 705fdaa1f953e87a0fe08cc1cb750d43eec6ec51..490fabb19bee7dc19a90b326b9c3414f473b60d2 100644 (file)
@@ -53,6 +53,12 @@ ArdourWindow::~ArdourWindow ()
 {
 }
 
+bool
+ArdourWindow::on_key_press_event (GdkEventKey* ev)
+{
+       return relay_key_press (ev, this);
+}
+
 bool
 ArdourWindow::on_enter_notify_event (GdkEventCrossing *ev)
 {
index 68bf65d35359b14f758ddbd44224032a05b1621e..e113f724c870b2ccd4d27f78441617497b826845 100644 (file)
@@ -43,6 +43,7 @@ class ArdourWindow : public Gtk::Window, public ARDOUR::SessionHandlePtr, public
        bool on_enter_notify_event (GdkEventCrossing*);
        bool on_leave_notify_event (GdkEventCrossing*);
         bool on_delete_event (GdkEventAny *);
+        bool on_key_press_event (GdkEventKey*);
        void on_unmap ();
 
   private: