summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-10-24 14:24:38 +0200
committerinfirit <[email protected]>2014-10-24 15:40:43 +0200
commitd42ed7669335e67507b506c7e74368a99469c4d9 (patch)
tree67fcb445af201b5af17df4ad22002008f2151e6d
parente10d87f85996697b6623723640802dafc0c03174 (diff)
downloadmarco-d42ed7669335e67507b506c7e74368a99469c4d9.tar.bz2
marco-d42ed7669335e67507b506c7e74368a99469c4d9.tar.xz
GDK_KEY_* is also available in Gtk+-2.
-rw-r--r--src/tools/marco-mag.c6
1 files changed, 1 insertions, 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 <stdlib.h>
#include <math.h>
-#if GTK_CHECK_VERSION(3, 0, 0)
- #include <gdk/gdkkeysyms-compat.h>
-#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 ();