summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--gtk/gtk-2.22.defs48
2 files changed, 49 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1bee3534..543071ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -352,7 +352,7 @@ if test "x$have_pycairo" = "xtrue"; then
AC_DEFINE([HAVE_GTK_2_20], [$have_gtk_220], [If Gtk 2.20 was found])
dnl check for gtk 2.22
- PKG_CHECK_MODULES(GTK222, gtk+-2.0 >= 2.21.0,
+ PKG_CHECK_MODULES(GTK222, gtk+-2.0 >= 2.22.0,
HAVE_GTK_222="yes", HAVE_GTK_222="no")
if test "x$HAVE_GTK_222" = "xyes"; then
diff --git a/gtk/gtk-2.22.defs b/gtk/gtk-2.22.defs
index 890504ad..3635bb7c 100644
--- a/gtk/gtk-2.22.defs
+++ b/gtk/gtk-2.22.defs
@@ -143,3 +143,51 @@
(return-type "GtkWidget*")
)
+;; From gtkexpander.h
+
+(define-method set_label_fill
+ (of-object "GtkExpander")
+ (c-name "gtk_expander_set_label_fill")
+ (return-type "none")
+ (parameters
+ '("gboolean" "label_fill")
+ )
+)
+
+(define-method get_label_fill
+ (of-object "GtkExpander")
+ (c-name "gtk_expander_get_label_fill")
+ (return-type "gboolean")
+)
+
+;; From gtkiconview.h
+
+(define-method set_item_orientation
+ (of-object "GtkIconView")
+ (c-name "gtk_icon_view_set_item_orientation")
+ (return-type "none")
+ (parameters
+ '("GtkOrientation" "orientation")
+ )
+)
+
+(define-method get_item_orientation
+ (of-object "GtkIconView")
+ (c-name "gtk_icon_view_get_item_orientation")
+ (return-type "GtkOrientation")
+)
+
+;; From gtknotebook.h
+
+(define-method get_tab_hborder
+ (of-object "GtkNotebook")
+ (c-name "gtk_notebook_get_tab_hborder")
+ (return-type "guint16")
+)
+
+(define-method get_tab_vborder
+ (of-object "GtkNotebook")
+ (c-name "gtk_notebook_get_tab_vborder")
+ (return-type "guint16")
+)
+