com gtk/php-gtk: Fixing the parameter type. I still don't know why virtual_root is null, although we set it.: ext/gtk+/gtktreeview.overrides

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    0b1b973e07d249bcf6930c8a4a5f12e42ba61791
Author:    Christian Weiske <[email protected]>         Sat, 1 Jul 2006 09:33:24 +0000
Parents:   93a4fa9bff20ce99c9df076ae633941f6c5d08fb
Branches:  master

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

Log:
Fixing the parameter type.
I still don't know why virtual_root is null, although we set it.

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


Diff:
0b1b973e07d249bcf6930c8a4a5f12e42ba61791
diff --git a/ext/gtk+/gtktreeview.overrides b/ext/gtk+/gtktreeview.overrides
index aa9f5ed..63190a0 100644
--- a/ext/gtk+/gtktreeview.overrides
+++ b/ext/gtk+/gtktreeview.overrides
@@ -1395,7 +1395,7 @@ PHP_METHOD
     GtkTreePath *path = NULL;
     zval *php_model = NULL, *php_path = NULL;
 
-    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "V|s", &php_model, gtktreemodel_ce, &php_path))
+    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "O|V", &php_model, gtktreemodel_ce, &php_path))
         return;
 
     if (php_path && phpg_tree_path_from_zval(php_path, &path TSRMLS_CC) == FAILURE) {
@@ -1403,7 +1403,6 @@ PHP_METHOD
         return;
     }
 
-
     wrapped_obj = g_object_new(phpg_gtype_from_zval(this_ptr),
                                "child-model", GTK_TREE_MODEL(PHPG_GOBJECT(php_model)),
                                "virtual-root", path,
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.