diff options
author | jstebbins <[email protected]> | 2011-03-22 17:22:56 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-03-22 17:22:56 +0000 |
commit | 1c2d3f19a565733b756fb21bf53dea49a4b4e7ca (patch) | |
tree | e254b9020438d1c05856355359fff7fafe084191 /gtk/src/ghbcompat.h | |
parent | 7757b6f0f0cb058d11ba312c7e898f12d6e5d579 (diff) |
LinGui: fix backward compatibility issue
Versions of gdk on Ubuntu 9.10 and 10.04 do not have GDK_KEY_* macros
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3871 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/ghbcompat.h')
-rw-r--r-- | gtk/src/ghbcompat.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk/src/ghbcompat.h b/gtk/src/ghbcompat.h new file mode 100644 index 000000000..911f13262 --- /dev/null +++ b/gtk/src/ghbcompat.h @@ -0,0 +1,19 @@ +#if !defined(_GHB_COMPAT_H_) +#define _GHB_COMPAT_H_ + +#include <gtk/gtk.h> +#include <gdk/gdk.h> + +#if !GTK_CHECK_VERSION(3, 0, 0) +#include <gdk/gdkkeysyms.h> +#endif + +// Define any keys not defined by older GDK versions +#if !defined(GDK_KEY_Delete) +#define GDK_KEY_Delete GDK_Delete +#define GDK_KEY_Return GDK_Return +#define GDK_KEY_Down GDK_Down +#define GDK_KEY_Up GDK_Up +#endif + +#endif // _GHB_COMPAT_H_ |