1
0
Fork 0

Adjust for API break in gdkkeysyms.h

The key symbols were renamed to avoid namespace conflicts with
gobject-introspection.
This commit is contained in:
Florian Müllner 2010-09-09 17:01:52 +02:00
parent 86b8b9051f
commit 8a6b583cdc
2 changed files with 8 additions and 1 deletions

View file

@ -15,4 +15,10 @@
#endif /*GTK_CHECK_VERSION */
/* Compatibility with old GDK key symbols */
#ifndef GDK_KEY_Escape
#define GDK_KEY_Escape GDK_Escape
#endif /* GDK_KEY_Escape */
#endif /* __GDK_COMPAT_H__ */

View file

@ -28,6 +28,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <gdk-compat.h>
static GtkWidget *grab_widget = NULL;
static GtkWidget *display_window = NULL;
@ -191,7 +192,7 @@ key_press (GtkWidget *invisible,
GdkEventKey *event,
gpointer data)
{
if (event->keyval == GDK_Escape)
if (event->keyval == GDK_KEY_Escape)
{
shutdown_grab ();