Use old style (pre gtk-2.22) keysyms

And include the compatibility header to build on newer versions.

Reported-by: Salvador Cuñat <salvador.cunat@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-01-02 13:01:02 -08:00
parent b900a21165
commit a319d66c4a
2 changed files with 8 additions and 5 deletions

View file

@ -3,6 +3,10 @@
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#if GTK_CHECK_VERSION(2,22,0)
#include <gdk/gdkkeysyms-compat.h>
#endif
extern GtkWidget *main_window;