summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-07-14 20:31:59 +0200
committerThibault Saunier <tsaunier@gnome.org>2015-07-14 20:31:59 +0200
commit0826c871366ada1b30ee94a0aee27bc18b8b2e0b (patch)
treee6f20148c889cf6ebe953ad6b9a7744827ad04f6
parent09145cc56bed628b88f2f6ab62433cc7707aacce (diff)
validate:gtk: Handle the case were we are 'pressing' only a modifier
-rw-r--r--validate/plugins/gtk/gstvalidategtk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/validate/plugins/gtk/gstvalidategtk.c b/validate/plugins/gtk/gstvalidategtk.c
index 6adc112..ec930c5 100644
--- a/validate/plugins/gtk/gstvalidategtk.c
+++ b/validate/plugins/gtk/gstvalidategtk.c
@@ -137,7 +137,6 @@ _create_keyboard_events (GstValidateAction * action,
return NULL;
}
-
device = get_device (action, GDK_SOURCE_KEYBOARD);
if (device == NULL) {
GST_VALIDATE_REPORT (action->scenario,
@@ -153,7 +152,7 @@ _create_keyboard_events (GstValidateAction * action,
gtk_accelerator_parse_with_keycode (keyname, &keyval, &keys, &state);
events =
g_list_append (events, _create_key_event (window, etype, keyval,
- keys[0], state, device));
+ keys ? keys[0] : 0, state, device));
} else if (string) {
gint i;