Adjust for API break in gdkkeysyms.h
The key symbols were renamed to avoid namespace conflicts with gobject-introspection.
This commit is contained in:
parent
86b8b9051f
commit
8a6b583cdc
@ -15,4 +15,10 @@
|
|||||||
|
|
||||||
#endif /*GTK_CHECK_VERSION */
|
#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__ */
|
#endif /* __GDK_COMPAT_H__ */
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <gdk-compat.h>
|
||||||
|
|
||||||
static GtkWidget *grab_widget = NULL;
|
static GtkWidget *grab_widget = NULL;
|
||||||
static GtkWidget *display_window = NULL;
|
static GtkWidget *display_window = NULL;
|
||||||
@ -191,7 +192,7 @@ key_press (GtkWidget *invisible,
|
|||||||
GdkEventKey *event,
|
GdkEventKey *event,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
if (event->keyval == GDK_Escape)
|
if (event->keyval == GDK_KEY_Escape)
|
||||||
{
|
{
|
||||||
shutdown_grab ();
|
shutdown_grab ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user