[Xfce4-commits] <midori:master> Define GtkV/HBox types to allow build with GTK+3.2
Christian Dywan
noreply at xfce.org
Sat Nov 19 21:38:01 CET 2011
Updating branch refs/heads/master
to 1dc6e23b9ef2aec61d21f4b9c12e1745d4dcd081 (commit)
from 8021df8646e65b3d17391b8c7a557360f80b8adf (commit)
commit 1dc6e23b9ef2aec61d21f4b9c12e1745d4dcd081
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Nov 19 21:03:51 2011 +0100
Define GtkV/HBox types to allow build with GTK+3.2
katze/gtk3-compat.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/katze/gtk3-compat.h b/katze/gtk3-compat.h
index a59ff93..70a811f 100644
--- a/katze/gtk3-compat.h
+++ b/katze/gtk3-compat.h
@@ -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
More information about the Xfce4-commits
mailing list