summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-12-07 22:51:49 +0100
committerDavid Robillard <d@drobilla.net>2016-12-11 15:33:15 -0500
commit96d838c1f4af144da1506b4df10f16057417cbab (patch)
tree2920eb8375ab14c7afb6f2a9389a685fd284e657
parent80e9c5717d7a68e3a03640de84e36390caa21cbe (diff)
downloadsuil-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.c9
-rw-r--r--src/x11_in_gtk3.c9
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