validate:gtk: Use event->type directly

gdk_event_get_event_type was introduced in Gtk 3.10 only

https://bugzilla.gnome.org/show_bug.cgi?id=749421
This commit is contained in:
Thibault Saunier 2015-05-15 12:57:49 +02:00
parent d89b4884c6
commit 4829e44147

View file

@ -421,12 +421,11 @@ _process_event (GdkEvent * event, gpointer data)
((GList *) gst_mini_object_get_qdata (GST_MINI_OBJECT (tmp_action),
ACTION_GDKEVENTS_QUARK))->data;
if (gdk_event_get_event_type (awaited_event) ==
gdk_event_get_event_type (event)
if (awaited_event->type == event->type
&& ((GdkEventAny *) event)->window ==
((GdkEventAny *) awaited_event)->window) {
switch (gdk_event_get_event_type (awaited_event)) {
switch (awaited_event->type) {
case GDK_KEY_PRESS:
case GDK_KEY_RELEASE:
if (event->key.keyval == awaited_event->key.keyval) {