diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-02-25 15:20:46 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-26 13:29:55 -0600 |
commit | bc0477c7d6445730b22e733ad4a65f0cc23fa405 (patch) | |
tree | f121e5cb29adb1440088dbf642a332eb4ccb9b24 | |
parent | ef6413a2a833abe24aae072bd59c7434969fc59d (diff) | |
download | qemu-bc0477c7d6445730b22e733ad4a65f0cc23fa405.zip qemu-bc0477c7d6445730b22e733ad4a65f0cc23fa405.tar.gz qemu-bc0477c7d6445730b22e733ad4a65f0cc23fa405.tar.bz2 |
Add compat for GDK_KEY_XXX symbols
The GDK_KEY_XXX symbols are new in GTK3 and only the most
recent GTK2 releases. Most versions of GTK2 have simply
used GDK_XXX
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1361805646-6425-14-git-send-email-berrange@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | ui/gtk.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -88,6 +88,15 @@ static inline void gdk_drawable_get_size(GdkWindow *w, gint *ww, gint *wh) #define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED(widget) #endif +#ifndef GDK_KEY_0 +#define GDK_KEY_0 GDK_0 +#define GDK_KEY_1 GDK_1 +#define GDK_KEY_2 GDK_2 +#define GDK_KEY_f GDK_f +#define GDK_KEY_g GDK_g +#define GDK_KEY_plus GDK_plus +#define GDK_KEY_minus GDK_minus +#endif typedef struct VirtualConsole { |