]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix backward compatibility issue
authorjstebbins <jstebbins.hb@gmail.com>
Tue, 22 Mar 2011 17:22:56 +0000 (17:22 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Tue, 22 Mar 2011 17:22:56 +0000 (17:22 +0000)
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

15 files changed:
gtk/src/audiohandler.c
gtk/src/callbacks.c
gtk/src/ghbcellrenderertext.c
gtk/src/ghbcompat.h [new file with mode: 0644]
gtk/src/ghbcompositor.c
gtk/src/hb-backend.c
gtk/src/icons.c
gtk/src/main.c
gtk/src/presets.c
gtk/src/preview.c
gtk/src/queuehandler.c
gtk/src/resources.c
gtk/src/settings.c
gtk/src/subtitlehandler.c
gtk/src/x264handler.c

index c52b2cd1465a83551e8ed01dc4f06994af1e79ad..d44960a041c2340e20deee7aeba1693a5d8ea9c0 100644 (file)
@@ -11,7 +11,7 @@
  * any later version.
  */
 
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include "hb.h"
 #include "settings.h"
 #include "hb-backend.h"
index 9bc2dd7ccab5585648e8097673aa8c11a1d54c73..aead002b3d830f7d191552d3e55b1089db5d7a90 100644 (file)
@@ -30,6 +30,8 @@
 #include <netinet/in.h>
 #include <netdb.h>
 
+#include "ghbcompat.h"
+
 #if !defined(_NO_UPDATE_CHECK)
 #if defined(_OLD_WEBKIT)
 #include <webkit.h>
@@ -50,8 +52,6 @@
 #include <dbt.h>
 #endif
 
-#include <gtk/gtk.h>
-#include <gdk/gdkkeysyms.h>
 #include <glib/gstdio.h>
 #include <gio/gio.h>
 
index abaf9694ce43a1428b1d9d067f94db4830bf3138..6f6329057b8f849e106183d41600a3993a573ccc 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <config.h>
 #include <stdlib.h>
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include <glib/gi18n-lib.h>
 #include <gtk/gtkmarshal.h>
 //#include <gtk/gtkeditable.h>
diff --git a/gtk/src/ghbcompat.h b/gtk/src/ghbcompat.h
new file mode 100644 (file)
index 0000000..911f132
--- /dev/null
@@ -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_
index eb46cde50bc4bfd65936aea2db785d25b872a25c..c67181ebfc4150c3492bac73f028d128028bad34 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <config.h>
 #include <stdlib.h>
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include <gtk/gtkprivate.h>
 #include <gtk/gtkmarshal.h>
 #include "ghbcompositor.h"
index 17f0af853ac01089a0a861f4f42e83b5a5b2f376..e0ee19c3b5125d6f1acc9a583617a3dd1b461aea 100644 (file)
@@ -25,7 +25,7 @@
 #include <limits.h>
 #include <math.h>
 #include "hb.h"
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include <glib/gstdio.h>
 #include "hb-backend.h"
 #include "settings.h"
index 9054976310ebd0a56cf6eef3cdadd080ef8641af..2fec1540e440faa3d21dca12cb9ded69d5171c29 100644 (file)
@@ -1,4 +1,4 @@
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include "icon_tools.h"
 #include "values.h"
 #include "resources.h"
index f55abd3482ae429e36a89f6181a106696cdbcd63..176f0f489a44094d97fa980a58b2a540fe472de0 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <config.h>
 
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 
 #if defined(_ENABLE_GST)
 #include <gst/gst.h>
index 4d7217f8ac1382903634fc620d3176f2ecc124d5..b3815f0326faafc501e47d20cb31b6d42cd68a2a 100644 (file)
@@ -19,7 +19,7 @@
 #include <glib-object.h>
 #include <glib/gstdio.h>
 #include <string.h>
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include "hb.h"
 #include "settings.h"
 #include "callbacks.h"
index 1023ade6d5ffec0a888e516fda3be374cd282da0..e4381d0368ee8f2db6580184620f0b9431274d05 100644 (file)
@@ -15,7 +15,7 @@
 #include <glib.h>
 #include <glib/gstdio.h>
 #include <glib-object.h>
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 
 #if !defined(_WIN32)
 #include <gdk/gdkx.h>
index dfa0e173887a089bccd7981b2740a3b18feb9752..7fd6a82dab65e0a39320c3f5d3df37808a574ec8 100644 (file)
@@ -11,8 +11,7 @@
  * any later version.
  */
 
-#include <gtk/gtk.h>
-#include <gdk/gdkkeysyms.h>
+#include "ghbcompat.h"
 #include <glib/gstdio.h>
 #include <gio/gio.h>
 #include "hb.h"
index e4252140ff39ad9ae6ee447ed8d792d6052a14e2..c2255013f6eb4e43cd643e96b7d4da3e74219173 100644 (file)
@@ -15,7 +15,7 @@
 #include <glib-object.h>
 #include <glib/gstdio.h>
 #include <string.h>
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include "settings.h"
 #include "plist.h"
 #include "resources.h"
index 46e2de94177c7fc57923c8673cd0469924059934..2fe0b5e6ded6c35302794da8abd9127f11fcad81 100644 (file)
@@ -16,7 +16,7 @@
 #include <glib.h>
 #include <glib/gstdio.h>
 #include <string.h>
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include "settings.h"
 #include "hb-backend.h"
 #include "values.h"
index 0746b2631309e2f68bc5eb30a4a0c3684522844d..14d3da0a0068612c27899a4f7124767a61ba8952 100644 (file)
@@ -11,7 +11,7 @@
  * any later version.
  */
 
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include "hb.h"
 #include "settings.h"
 #include "hb-backend.h"
index d7602f76863fa50fb3f195d8e98eb14142f191c9..86bdb4a119001107d0fd1d7c32a560a6c23ba0df 100644 (file)
@@ -11,7 +11,7 @@
  * any later version.
  */
 
-#include <gtk/gtk.h>
+#include "ghbcompat.h"
 #include <string.h>
 #include "settings.h"
 #include "values.h"