[pygtk] Wrap the final Gtk-2.22 API additions
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk] Wrap the final Gtk-2.22 API additions
- Date: Fri, 24 Sep 2010 09:28:42 +0000 (UTC)
commit 626a5063ae5533c2f88864823ff783d03deb8099
Author: John Stowers <john stowers gmail com>
Date: Fri Sep 24 21:28:02 2010 +1200
Wrap the final Gtk-2.22 API additions
configure.ac | 2 +-
gtk/gtk-2.22.defs | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1bee353..543071e 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 890504a..3635bb7 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")
+)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]