]> spindle.queued.net Git - midori/commitdiff
Define GtkV/HBox types to allow build with GTK+3.2
authorChristian Dywan <christian@twotoasts.de>
Sat, 19 Nov 2011 20:03:51 +0000 (21:03 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 19 Nov 2011 20:35:56 +0000 (21:35 +0100)
katze/gtk3-compat.h

index a59ff936f78e059a16fdb15c961ac94d3baf1cbd..70a811f755d38df2224136ee12f80861e82edd19 100644 (file)
@@ -6,6 +6,15 @@
 
 G_BEGIN_DECLS
 
+#if GTK_CHECK_VERSION (3, 2, 0)
+    #define GTK_TYPE_VBOX GTK_TYPE_BOX
+    #define GtkVBox GtkBox
+    #define GtkVBoxClass GtkBoxClass
+    #define GTK_TYPE_HBOX GTK_TYPE_BOX
+    #define GtkHBox GtkBox
+    #define GtkHBoxClass GtkBoxClass
+#endif
+
 #if !GLIB_CHECK_VERSION (2, 32, 0)
     #define G_SOURCE_REMOVE   FALSE
     #define G_SOURCE_CONTINUE TRUE