From d42ed7669335e67507b506c7e74368a99469c4d9 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 24 Oct 2014 14:24:38 +0200 Subject: GDK_KEY_* is also available in Gtk+-2. --- src/tools/marco-mag.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/tools/marco-mag.c b/src/tools/marco-mag.c index 157c9846..a87c9e3a 100644 --- a/src/tools/marco-mag.c +++ b/src/tools/marco-mag.c @@ -29,10 +29,6 @@ #include #include -#if GTK_CHECK_VERSION(3, 0, 0) - #include -#endif - static GtkWidget *grab_widget = NULL; static GtkWidget *display_window = NULL; static int last_grab_x = 0; @@ -208,7 +204,7 @@ key_press (GtkWidget *invisible, GdkEventKey *event, gpointer data) { - if (event->keyval == GDK_Escape) + if (event->keyval == GDK_KEY_Escape) { shutdown_grab (); -- cgit v1.2.1