summaryrefslogtreecommitdiff
path: root/src/gs-window-x11.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-09 10:47:04 +0200
committerinfirit <[email protected]>2015-07-09 12:15:32 +0200
commita3c426e1e81dc56f4fdd56f8c736125798fec26b (patch)
tree4c94c4276d333da0e4a7aad74e96bf5bfca90295 /src/gs-window-x11.c
parent1b8f66d0f995b2f9ccf56c9ab7a27c2f68442c50 (diff)
downloadmate-screensaver-a3c426e1e81dc56f4fdd56f8c736125798fec26b.tar.bz2
mate-screensaver-a3c426e1e81dc56f4fdd56f8c736125798fec26b.tar.xz
Don't use gdkkeysyms-compat for Gtk+2
Diffstat (limited to 'src/gs-window-x11.c')
-rw-r--r--src/gs-window-x11.c15
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));