cvs: php-gtk-doc /en/reference/gtk gtktreeitem.xml
| From: | Scott Mattocks | Date: | Tue, 27 Jul 2004 13:28:45 +0000 |
| Subject: | cvs: php-gtk-doc /en/reference/gtk gtktreeitem.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-939@lists.php.net to get a copy of this message | ||
scottmattocks Tue Jul 27 09:28:45 2004 EDT
Modified files:
/php-gtk-doc/en/reference/gtk gtktreeitem.xml
Log:
Documented select and deselect methods. expand and collapse methods are minimally documented. More
is still needed for those two.
http://cvs.php.net/diff.php/php-gtk-doc/en/reference/gtk/gtktreeitem.xml?r1=1.4&r2=1.5&ty=u
Index: php-gtk-doc/en/reference/gtk/gtktreeitem.xml
diff -u php-gtk-doc/en/reference/gtk/gtktreeitem.xml:1.4
php-gtk-doc/en/reference/gtk/gtktreeitem.xml:1.5
--- php-gtk-doc/en/reference/gtk/gtktreeitem.xml:1.4 Mon Jul 26 15:38:22 2004
+++ php-gtk-doc/en/reference/gtk/gtktreeitem.xml Tue Jul 27 09:28:44 2004
@@ -118,40 +118,92 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
- Highlights the node as selected.
+ Selects the node.
</shortdesc>
<desc>
-
+ <simpara>
+ Selects the node and emits the select signal.
+ </simpara>
+ <para>
+ <example>
+ <title>Selecting a node</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+function treeItemSelected() {
+ echo "A tree item was selected.\n";
+}
+
+// Create a new button.
+$button = &new GtkButton('Press Me');
+// Create a new tree item
+$treeItem = &new GtkTreeItem('I\'ll get selected.');
+
+// Have the treeItemSelected function called when
+// the tree item is selected.
+$treeItem->connect('select', 'treeItemSelected');
+
+// When the button is clicked the treeItemSelected
+// function will be called and a message will be
+// printed to the terminal.
+$button->connect('clicked', array(&$treeItem, 'select'));
+]]>
+ </programlisting>
+ </example>
+ </para>
+ <simpara>
+ This method is connected to the <signalname>clicked</signalname>
+ signal on construction.
+ </simpara>
+ <simpara>
+ See also: <function class="GtkTreeItem">deselect</function>
+ </simpara>
</desc>
</method>
<method id="gtk.gtktreeitem.method.deselect">
<funcsynopsis>
<funcprototype>
- <funcdef>void <function>deselect</function></funcdef>
+ <funcdef>void
+ <function>deselect</function>
+ </funcdef>
<paramdef>void</paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Deselects the node.
</shortdesc>
<desc>
-
+ <simpara>
+ Deselects the node and emits the deselect signal. This method
+ is called implicitly when another node in either the parent or
+ child trees is selected.
+ </simpara>
+ <simpara>
+ See also: <function class="GtkTreeItem">select</function>
+ </simpara>
</desc>
</method>
<method id="gtk.gtktreeitem.method.expand">
<funcsynopsis>
<funcprototype>
- <funcdef>void <function>expand</function></funcdef>
+ <funcdef>void
+ <function>expand</function>
+ </funcdef>
<paramdef>void</paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Shows the node's subtree.
</shortdesc>
<desc>
-
+ <simpara>
+ Shows the node's subtree and emits the <signalname>expand</signalname>
+ signal. When expanded, the icon to the left of the node changes from a
+ + (plus) to a - (minus). Show must also be called on each subtree item
+ before it will be visible.
+ </simpara>
</desc>
</method>
@@ -163,10 +215,11 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Hides the node's subtree.
</shortdesc>
<desc>
-
+ Hides the node's subtree and emits the <signalname>collapse</signalname>
+ signal.
</desc>
</method>