diff options
Diffstat (limited to 'src/gs-window-x11.c')
-rw-r--r-- | src/gs-window-x11.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c index f9369e8..6756780 100644 --- a/src/gs-window-x11.c +++ b/src/gs-window-x11.c @@ -32,7 +32,6 @@ #include <gdk/gdkkeysyms.h> #if GTK_CHECK_VERSION (3, 0, 0) #include <gtk/gtkx.h> -#include <gdk/gdkkeysyms-compat.h> #define GTK_WIDGET_IS_SENSITIVE gtk_widget_get_sensitive #define GTK_WIDGET_VISIBLE gtk_widget_get_visible #define GTK_WIDGET_REALIZED gtk_widget_get_realized @@ -2374,10 +2373,10 @@ queue_key_event (GSWindow *window, { /* Eat the first return, enter, escape, or space */ if (window->priv->key_events == NULL - && (event->keyval == GDK_Return - || event->keyval == GDK_KP_Enter - || event->keyval == GDK_Escape - || event->keyval == GDK_space)) + && (event->keyval == GDK_KEY_Return + || event->keyval == GDK_KEY_KP_Enter + || event->keyval == GDK_KEY_Escape + || event->keyval == GDK_KEY_space)) { return; } @@ -2386,9 +2385,9 @@ queue_key_event (GSWindow *window, something is wrong */ /* Don't queue keys that may cause focus navigation in the dialog */ if (g_list_length (window->priv->key_events) < MAX_QUEUED_EVENTS - && event->keyval != GDK_Tab - && event->keyval != GDK_Up - && event->keyval != GDK_Down) + && event->keyval != GDK_KEY_Tab + && event->keyval != GDK_KEY_Up + && event->keyval != GDK_KEY_Down) { window->priv->key_events = g_list_prepend (window->priv->key_events, gdk_event_copy ((GdkEvent *)event)); |