cvs: php-gtk /docs/en/classes gtkaccellabel.xml gtkitemfactory.xml gtklabel.xml gtktipsquery.xml gtkwindow.xml
| From: | James Moore | Date: | Fri, 13 Apr 2001 15:50:06 +0000 |
| Subject: | cvs: php-gtk /docs/en/classes gtkaccellabel.xml gtkitemfactory.xml gtklabel.xml gtktipsquery.xml gtkwindow.xml | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1369@lists.php.net to get a copy of this message | ||
jmoore Fri Apr 13 08:50:06 2001 EDT
Modified files:
/php-gtk/docs/en/classes gtkaccellabel.xml gtkitemfactory.xml
gtklabel.xml gtktipsquery.xml
gtkwindow.xml
Log:
- We dont need to escape $'s any more
- Corrected Stephs XML in gtkitemfactory.xml
Index: php-gtk/docs/en/classes/gtkaccellabel.xml
diff -u php-gtk/docs/en/classes/gtkaccellabel.xml:1.3 php-gtk/docs/en/classes/gtkaccellabel.xml:1.4
--- php-gtk/docs/en/classes/gtkaccellabel.xml:1.3 Fri Apr 13 07:05:13 2001
+++ php-gtk/docs/en/classes/gtkaccellabel.xml Fri Apr 13 08:50:05 2001
@@ -53,7 +53,7 @@
This is the method for setting the widget whose accelerators are
going to be displayed. The syntax for using this is as follows:
<programlisting>
-\$widget =>(\$accellabel);
+$widget =>($accellabel);
</programlisting>
</para>
</desc>
Index: php-gtk/docs/en/classes/gtkitemfactory.xml
diff -u php-gtk/docs/en/classes/gtkitemfactory.xml:1.4
php-gtk/docs/en/classes/gtkitemfactory.xml:1.5
--- php-gtk/docs/en/classes/gtkitemfactory.xml:1.4 Fri Apr 13 07:05:13 2001
+++ php-gtk/docs/en/classes/gtkitemfactory.xml Fri Apr 13 08:50:05 2001
@@ -18,18 +18,18 @@
<title>Using GTKOptionMenu</title>
<simpara>Creating a GtkOptionMenu with GtkItemFactory </simpara>
<programlisting>
-\$opt_menu = &new GtkOptionMenu();
-\$accel_group = &new GtkAccelGroup();
-\$itemfactory = &new
-GtkItemFactory(\$opt_menu->get_type(),"<path>", \$accel_group);
+$opt_menu = &new GtkOptionMenu();
+$accel_group = &new GtkAccelGroup();
+$itemfactory = &new
+GtkItemFactory($opt_menu->get_type(),"<path>", $accel_group);
</programlisting>
<simpara>
See below for information regarding the menu array
</simpara>
<programlisting>
-\$itemfactory->create_items(\$menu_array);
-\$menu = \$itemfactory->get_widget("<path>");
-\$menu->show();
+$itemfactory->create_items($menu_array);
+$menu = $itemfactory->get_widget("<path>");
+$menu->show();
</programlisting>
</example>
</para>
@@ -139,43 +139,87 @@
</shortdesc>
<desc>
<para>
- <!-- TODO COrrect XML used here (itemized list!) -->
Creates the menu items from an array, of which the values are as follows:
- 1. The menu path. The letter immediately after the underscore indicates an
- accelerator key which can be used when the menu in question is open;
- 2. The accelerator key for entry;
- 3. The callback function;
- 4. The callback action. The default is 0. NEED TO LOOK INTO THIS FURTHER;
- 5. The item type, used to define what kind of an item within the menu each is. The possible
values here are:
+ <orderedlist numeration="none" spacing="compact">
+ <listitem>
+ <simpara>
+ The menu path. The letter immediately after the underscore indicates an
+ accelerator key which can be used when the menu in question is open.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ The accelerator key for entry.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ The callback function;
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ The callback action. The default is 0. NEED TO LOOK INTO THIS FURTHER;
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ The item type, used to define what kind of an item within the menu each is.
+ </simpara>
+ </listitem>
+ </orderedlist>
</para>
+ <simpara>
+ The possible values for the item type are:
+ </simpara>
<para>
- <informalexample>
- <programlisting>
- <!-- TODO Figure out WTF this is -->
- NULL "<Item>" ;
-
- "" "<Item>" ;
-
- "<Title>" creates a title item ;
-
- "<Item>" creates a simple item ;
-
- "<CheckItem>" creates a check item ;
-
- "<ToggleItem>" creates a toggle item ;
-
- "<RadioItem>" creates a radio item ;
-
- "<path>" path of a radio item to link to ;
-
- "<Separator>" creates a separator ;
-
- "<Branch>" creates an item to hold sub items ;
-
- "<LastBranch>" creates a right justified branch
-
- </programlisting>
- </informalexample>
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ <Title>: Creates a title item.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <Item>: Creates a simple item.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <CheckItem>: Creates a check item.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <ToggleItem>: Creates a toggle item.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <RadioItem>: Creates a radio item.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <Path>: Path of a radio item to link to.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <Separator>: Creates a separator.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <Branch>: Creates an item to hold sub items.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <LastBranch> Creates a right justified branch.
+ </simpara>
+ </listitem>
+ </itemizedlist>
</para>
</desc>
</method>
@@ -199,7 +243,7 @@
<example>
<title>Deleting a Menu</title>
<programlisting>
-\$delete_option = \$item_factory->delete_item("<path>");
+$delete_option = $item_factory->delete_item("<path>");
</programlisting>.
</example>
<note>
Index: php-gtk/docs/en/classes/gtklabel.xml
diff -u php-gtk/docs/en/classes/gtklabel.xml:1.3 php-gtk/docs/en/classes/gtklabel.xml:1.4
--- php-gtk/docs/en/classes/gtklabel.xml:1.3 Fri Apr 13 07:05:13 2001
+++ php-gtk/docs/en/classes/gtklabel.xml Fri Apr 13 08:50:05 2001
@@ -39,7 +39,7 @@
<para>
The syntax for creating a label with static text in it would be as follows:
<programlisting>
- \$label = &new GtkLabel("Static Text From Start To Finish");
+ $label = &new GtkLabel("Static Text From Start To Finish");
</programlisting>
</para>
</desc>
Index: php-gtk/docs/en/classes/gtktipsquery.xml
diff -u php-gtk/docs/en/classes/gtktipsquery.xml:1.3 php-gtk/docs/en/classes/gtktipsquery.xml:1.4
--- php-gtk/docs/en/classes/gtktipsquery.xml:1.3 Fri Apr 13 07:05:13 2001
+++ php-gtk/docs/en/classes/gtktipsquery.xml Fri Apr 13 08:50:05 2001
@@ -65,7 +65,7 @@
<para>
Sets the widget which initiates the query. It would be equally simple
to slip this into the widget settings with the syntax as follows:
- <programlisting>\$widget->set_query()</programlisting>
+ <programlisting>$widget->set_query()</programlisting>
</para>
</desc>
</method>
Index: php-gtk/docs/en/classes/gtkwindow.xml
diff -u php-gtk/docs/en/classes/gtkwindow.xml:1.3 php-gtk/docs/en/classes/gtkwindow.xml:1.4
--- php-gtk/docs/en/classes/gtkwindow.xml:1.3 Fri Apr 13 07:05:13 2001
+++ php-gtk/docs/en/classes/gtkwindow.xml Fri Apr 13 08:50:05 2001
@@ -43,13 +43,13 @@
The correct way to create a new window
</simpara>
<programlisting>
-\$window = &new GtkWindow();
+$window = &new GtkWindow();
</programlisting>
<simpara>
This will cause problems later on
</simpara>
<programlisting>
-\$window = new GtkWindow();
+$window = new GtkWindow();
</programlisting>
</example>
</refsect1>