mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
d89b4884c6
commit
4829e44147
1 changed files with 2 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue