cvs: php-gtk-doc /examples/reference/gtk/gtktreestore insert.phpw insert_after.phpw insert_before.phpw /manual/en/reference/gtk gtktreestore.xml
| From: | Christian Weiske | Date: | Thu, 19 Jan 2006 20:51:24 +0000 |
| Subject: | cvs: php-gtk-doc /examples/reference/gtk/gtktreestore insert.phpw insert_after.phpw insert_before.phpw /manual/en/reference/gtk gtktreestore.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1771@lists.php.net to get a copy of this message | ||
cweiske Thu Jan 19 20:51:24 2006 UTC
Modified files:
/php-gtk-doc/examples/reference/gtk/gtktreestore insert.phpw
insert_after.phpw
insert_before.phpw
/php-gtk-doc/manual/en/reference/gtk gtktreestore.xml
Log:
Changed the docs to adapt the api changes made by Andrei
http://cvs.php.net/viewcvs.cgi/php-gtk-doc/examples/reference/gtk/gtktreestore/insert.phpw?r1=1.1&r2=1.2&diff_format=u
Index: php-gtk-doc/examples/reference/gtk/gtktreestore/insert.phpw
diff -u php-gtk-doc/examples/reference/gtk/gtktreestore/insert.phpw:1.1
php-gtk-doc/examples/reference/gtk/gtktreestore/insert.phpw:1.2
--- php-gtk-doc/examples/reference/gtk/gtktreestore/insert.phpw:1.1 Wed Jan 18 11:36:48 2006
+++ php-gtk-doc/examples/reference/gtk/gtktreestore/insert.phpw Thu Jan 19 20:51:24 2006
@@ -3,22 +3,20 @@
$store = new GtkTreeStore(Gtk::TYPE_STRING);
//insert a new row without a parent (root row)
-$root = $store->insert(null, 0);
+$root = $store->insert(0);
$store->set($root, 0, 'root');
//insert a new row as child of the previously created root row
-$child1 = $store->insert($root, 0);
+$child1 = $store->insert(0, $root);
$store->set($child1, 0, 'child');
//insert another row, but at position 0 - that means
//before $child1
-$child2 = $store->insert($root, 0);
-$store->set($child2, 0, 'child 2');
+$child2 = $store->insert(0, $root, array('child2'));
//insert at position 1: before $child1,
//but after $child2
-$child3 = $store->insert($root, 1);
-$store->set($child3, 0, 'child 3');
+$child3 = $store->insert(1, $root, array('child3'));
//Display the store
http://cvs.php.net/viewcvs.cgi/php-gtk-doc/examples/reference/gtk/gtktreestore/insert_after.phpw?r1=1.1&r2=1.2&diff_format=u
Index: php-gtk-doc/examples/reference/gtk/gtktreestore/insert_after.phpw
diff -u php-gtk-doc/examples/reference/gtk/gtktreestore/insert_after.phpw:1.1
php-gtk-doc/examples/reference/gtk/gtktreestore/insert_after.phpw:1.2
--- php-gtk-doc/examples/reference/gtk/gtktreestore/insert_after.phpw:1.1 Wed Jan 18 11:36:48 2006
+++ php-gtk-doc/examples/reference/gtk/gtktreestore/insert_after.phpw Thu Jan 19 20:51:24 2006
@@ -7,16 +7,14 @@
$store->set($root, 0, 'root');
//insert this child as child of root row
-$child1 = $store->insert_after($root);
-$store->set($child1, 0, 'child1');
+$child1 = $store->insert_after(null, $root, array('child1'));
//insert this child after $child1
-$child2 = $store->insert_after($root, $child1);
-$store->set($child2, 0, 'child2');
+$child2 = $store->insert_after($child1, $root, array('child2'));
//insert new child after $child1, making $child2
//moving to position 2
-$child3 = $store->insert_after($root, $child1);
+$child3 = $store->insert_after($child1, $root);
$store->set($child3, 0, 'child3');
//Display the store
http://cvs.php.net/viewcvs.cgi/php-gtk-doc/examples/reference/gtk/gtktreestore/insert_before.phpw?r1=1.1&r2=1.2&diff_format=u
Index: php-gtk-doc/examples/reference/gtk/gtktreestore/insert_before.phpw
diff -u php-gtk-doc/examples/reference/gtk/gtktreestore/insert_before.phpw:1.1
php-gtk-doc/examples/reference/gtk/gtktreestore/insert_before.phpw:1.2
--- php-gtk-doc/examples/reference/gtk/gtktreestore/insert_before.phpw:1.1 Wed Jan 18 11:36:48 2006
+++ php-gtk-doc/examples/reference/gtk/gtktreestore/insert_before.phpw Thu Jan 19 20:51:24 2006
@@ -7,16 +7,14 @@
$store->set($root, 0, 'root');
//insert root2 before $root
-$root2 = $store->insert_before(null, $root);
+$root2 = $store->insert_before($root);
$store->set($root2, 0, 'root2');
//insert this child as child of root row
-$child1 = $store->insert_before($root);
-$store->set($child1, 0, 'child1');
+$child1 = $store->insert_before(null, $root, array('child1'));
//insert this child before $child1
-$child2 = $store->insert_before($root, $child1);
-$store->set($child2, 0, 'child2');
+$child2 = $store->insert_before($child1, $root, array('child2'));
//Display the store
http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtktreestore.xml?r1=1.5&r2=1.6&diff_format=u
Index: php-gtk-doc/manual/en/reference/gtk/gtktreestore.xml
diff -u php-gtk-doc/manual/en/reference/gtk/gtktreestore.xml:1.5
php-gtk-doc/manual/en/reference/gtk/gtktreestore.xml:1.6
--- php-gtk-doc/manual/en/reference/gtk/gtktreestore.xml:1.5 Wed Jan 18 18:51:41 2006
+++ php-gtk-doc/manual/en/reference/gtk/gtktreestore.xml Thu Jan 19 20:51:24 2006
@@ -131,8 +131,9 @@
<funcsynopsis>
<funcprototype>
<funcdef><classname>GtkTreeIter</classname>
<function>insert</function></funcdef>
- <paramdef><classname>GtkTreeIter</classname>
<parameter>parent</parameter></paramdef>
<paramdef>int <parameter>position</parameter></paramdef>
+ <paramdef><classname>GtkTreeIter</classname>
<parameter><optional>parent</parameter></paramdef>
+ <paramdef>array
<parameter><optional>items</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
@@ -150,9 +151,7 @@
be inserted to the end of the list.
</para>
<para>
- The newly inserted row has no values set; you have to use
- <function class="GtkTreeStore">set</function> or
- <function class="GtkTreeStore">set_value</function> to change them.
+ <parameter>items</parameter> can be an array of values for the column.
</para>
<example>
<title>Filling a GtkTreeStore with insert</title>
@@ -177,8 +176,9 @@
<funcsynopsis>
<funcprototype>
<funcdef><classname>GtkTreeIter</classname>
<function>insert_after</function></funcdef>
- <paramdef><classname>GtkTreeIter</classname>
<parameter><optional>parent</optional></parameter></paramdef>
<paramdef><classname>GtkTreeIter</classname>
<parameter><optional>sibling</optional></parameter></paramdef>
+ <paramdef><classname>GtkTreeIter</classname>
<parameter><optional>parent</optional></parameter></paramdef>
+ <paramdef>array
<parameter><optional>items</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
@@ -197,9 +197,7 @@
set, <parameter>parent</parameter> is optional.
</para>
<para>
- The newly inserted row has no values set; you have to use
- <function class="GtkTreeStore">set</function> or
- <function class="GtkTreeStore">set_value</function> to change them.
+ <parameter>items</parameter> can be an array of values for the column.
</para>
<example>
<title>Filling a GtkTreeStore with insert_after</title>
@@ -224,8 +222,9 @@
<funcsynopsis>
<funcprototype>
<funcdef><classname>GtkTreeIter</classname>
<function>insert_before</function></funcdef>
- <paramdef><classname>GtkTreeIter</classname>
<parameter><optional>parent</optional></parameter></paramdef>
<paramdef><classname>GtkTreeIter</classname>
<parameter><optional>sibling</optional></parameter></paramdef>
+ <paramdef><classname>GtkTreeIter</classname>
<parameter><optional>parent</optional></parameter></paramdef>
+ <paramdef>array
<parameter><optional>items</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
@@ -244,9 +243,7 @@
set, <parameter>parent</parameter> is optional.
</para>
<para>
- The newly inserted row has no values set; you have to use
- <function class="GtkTreeStore">set</function> or
- <function class="GtkTreeStore">set_value</function> to change them.
+ <parameter>items</parameter> can be an array of values for the column.
</para>
<example>
<title>Filling a GtkTreeStore with insert_before</title>