com gtk/php-gtk: GtkTextChildAnchor::get_widgets: ext /gtk+/gtktextview.overrides

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    a511b3e3c98f942ba28d42956a4769110306bad0
Author:    Christian Weiske <[email protected]>         Tue, 13 Jun 2006 13:41:18 +0000
Parents:   1c77b99cd68d16d9edfd960b777f8196c0a66814
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=a511b3e3c98f942ba28d42956a4769110306bad0

Log:
GtkTextChildAnchor::get_widgets

Changed paths:
  M  ext/gtk+/gtktextview.overrides


Diff:
a511b3e3c98f942ba28d42956a4769110306bad0
diff --git a/ext/gtk+/gtktextview.overrides b/ext/gtk+/gtktextview.overrides
index 73c973a..316e500 100644
--- a/ext/gtk+/gtktextview.overrides
+++ b/ext/gtk+/gtktextview.overrides
@@ -277,6 +277,31 @@ PHP_METHOD
 
 %% }}}
 
+%% {{{ GtkTextChildAnchor
+
+%%
+override gtk_text_child_anchor_get_widgets
+PHP_METHOD
+{
+    GList *widgets;
+    gint i, len;
+    zval *php_item = NULL;
+
+    widgets = gtk_text_child_anchor_get_widgets(GTK_TEXT_CHILD_ANCHOR(PHPG_GOBJECT(this_ptr)));
+    len = g_list_length(widgets);
+
+    array_init(return_value);
+    for (i = 0; i < len; i++) {
+        MAKE_STD_ZVAL(php_item);
+        phpg_gobject_new(&php_item, (GObject *)g_list_nth_data(widgets, i) TSRMLS_CC);
+        add_next_index_zval(return_value, php_item);
+    }
+
+    g_list_free(widgets);
+}
+
+%% }}}
+
 %% {{{ GtkTextView
 
 %%
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.