diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2016-12-07 22:51:49 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-12-11 15:33:15 -0500 |
commit | 96d838c1f4af144da1506b4df10f16057417cbab (patch) | |
tree | 2920eb8375ab14c7afb6f2a9389a685fd284e657 | |
parent | 80e9c5717d7a68e3a03640de84e36390caa21cbe (diff) | |
download | suil-96d838c1f4af144da1506b4df10f16057417cbab.tar.gz suil-96d838c1f4af144da1506b4df10f16057417cbab.tar.bz2 suil-96d838c1f4af144da1506b4df10f16057417cbab.zip |
Fix missing KeyRelease events for X11 in Gtk
-rw-r--r-- | src/x11_in_gtk2.c | 9 | ||||
-rw-r--r-- | src/x11_in_gtk3.c | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c index 56f751d..dc69477 100644 --- a/src/x11_in_gtk2.c +++ b/src/x11_in_gtk2.c @@ -266,10 +266,11 @@ suil_x11_wrapper_class_init(SuilX11WrapperClass* klass) GObjectClass* const gobject_class = G_OBJECT_CLASS(klass); GtkWidgetClass* const widget_class = GTK_WIDGET_CLASS(klass); - gobject_class->finalize = suil_x11_wrapper_finalize; - widget_class->realize = suil_x11_wrapper_realize; - widget_class->show = suil_x11_wrapper_show; - widget_class->key_press_event = suil_x11_wrapper_key_event; + gobject_class->finalize = suil_x11_wrapper_finalize; + widget_class->realize = suil_x11_wrapper_realize; + widget_class->show = suil_x11_wrapper_show; + widget_class->key_press_event = suil_x11_wrapper_key_event; + widget_class->key_release_event = suil_x11_wrapper_key_event; } static void diff --git a/src/x11_in_gtk3.c b/src/x11_in_gtk3.c index 2fd7522..86f8bde 100644 --- a/src/x11_in_gtk3.c +++ b/src/x11_in_gtk3.c @@ -269,10 +269,11 @@ suil_x11_wrapper_class_init(SuilX11WrapperClass* klass) GObjectClass* const gobject_class = G_OBJECT_CLASS(klass); GtkWidgetClass* const widget_class = GTK_WIDGET_CLASS(klass); - gobject_class->finalize = suil_x11_wrapper_finalize; - widget_class->realize = suil_x11_wrapper_realize; - widget_class->show = suil_x11_wrapper_show; - widget_class->key_press_event = suil_x11_wrapper_key_event; + gobject_class->finalize = suil_x11_wrapper_finalize; + widget_class->realize = suil_x11_wrapper_realize; + widget_class->show = suil_x11_wrapper_show; + widget_class->key_press_event = suil_x11_wrapper_key_event; + widget_class->key_release_event = suil_x11_wrapper_key_event; } static void |