com gtk/php-gtk: GdkDisplayManager::list_displays() : ext/gtk+/gdk.overrides

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    341f096d87c53180c78a9b08d373f33f9ca62851
Author:    Christian Weiske <[email protected]>         Tue, 13 Jun 2006 10:46:57 +0000
Parents:   4d1d9e9c38060d97700866ae242ed106246dd6f8
Branches:  master

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

Log:
GdkDisplayManager::list_displays()

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


Diff:
341f096d87c53180c78a9b08d373f33f9ca62851
diff --git a/ext/gtk+/gdk.overrides b/ext/gtk+/gdk.overrides
index fe56b48..ac950ed 100644
--- a/ext/gtk+/gdk.overrides
+++ b/ext/gtk+/gdk.overrides
@@ -542,7 +542,6 @@ PHP_METHOD
     }
 }
 
-
 %%
 override gdk_display_list_devices
 PHP_METHOD
@@ -566,6 +565,26 @@ PHP_METHOD
 
 %% }}}
 
+%% {{{ GdkDisplayManager
+
+%%
+override gdk_display_manager_list_displays
+PHP_METHOD
+{
+    GSList *list, *tmp;
+
+    list = gdk_display_manager_list_displays(GDK_DISPLAY_MANAGER(PHPG_GOBJECT(this_ptr)));
+    array_init(return_value);
+    for (tmp = list; tmp != NULL; tmp = tmp->next) {
+        zval *php_item = NULL;
+        phpg_gobject_new(&php_item, G_OBJECT(tmp->data) TSRMLS_CC);
+        add_next_index_zval(return_value, php_item);
+    }
+    g_slist_free(list);
+}
+
+%% }}}
+
 %% {{{ GdkDrawable
 
 %%
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.