Skip to content

Commit

Permalink
GDK_KEY_* is also available in Gtk+-2.
Browse files Browse the repository at this point in the history
  • Loading branch information
infirit committed Oct 24, 2014
1 parent e10d87f commit d42ed76
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/tools/marco-mag.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 ();

Expand Down

0 comments on commit d42ed76

Please sign in to comment.