cvs: php-gtk /docs/en/classes gtkwindow.xml
| From: | Steph Fox | Date: | Mon, 12 Mar 2001 18:57:35 +0000 |
| Subject: | cvs: php-gtk /docs/en/classes gtkwindow.xml | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-712@lists.php.net to get a copy of this message | ||
sfox Mon Mar 12 10:57:35 2001 EDT
Modified files:
/php-gtk/docs/en/classes gtkwindow.xml
Log:
general clean-up
Index: php-gtk/docs/en/classes/gtkwindow.xml
diff -u php-gtk/docs/en/classes/gtkwindow.xml:1.1 php-gtk/docs/en/classes/gtkwindow.xml:1.2
--- php-gtk/docs/en/classes/gtkwindow.xml:1.1 Wed Mar 7 06:53:24 2001
+++ php-gtk/docs/en/classes/gtkwindow.xml Mon Mar 12 10:57:35 2001
@@ -26,24 +26,16 @@
</funcprototype>
</funcsynopsis>
<para>
- The <function>GtkWindow</function> is the constructor
- for the GtkWindow widget, it should be called to create
- a new Window on the screen, it returns a reference to the
- new window on success, returns <literal>NULL</literal> on
- error.
+ The <function>GtkWindow</function> is the constructor for the GtkWindow widget
which is called to create a new Window on the screen. It returns a reference to the new window on
success or <literal>NULL</literal> on error.
</para>
<simpara>
- GtkWindows must be constructed by reference, this is due
- to the way the underlying GtkObjects have to be stored in
- PHP/Zend Wrappers as well as the way Zend handles objects.
- If you dont use refence's when calling the constructor you
- will find earlier windows overwritten by later ones.
+GtkWindows must be constructed by reference, due to the way the underlying GtkObjects are stored in
PHP/Zend Wrappers and the way the Zend engine handles objects. If you don't use references when
calling the constructor, you will find that earlier windows are overwritten by later ones.
</simpara>
<example>
<title>Creating a new GTK+ Window from PHP</title>
<programlisting>
<lineannotation>
-/* -- The Correct Way to Create a new window -- */
+/* -- The correct way to create a new window -- */
</lineannotation>
<varname>$window</varname> = &new GtkWindow();
</programlisting>
@@ -60,23 +52,23 @@
<refentry id="class.gtkwindow.set_policy">
<refnamediv>
<refname>GtkWindow::set_policy</refname>
- <refpurpose>Sets how resize requests are delt with</refpurpose>
+ <refpurpose>Determines the way resize requests are dealt with</refpurpose>
</refnamediv>
<refsect1>
<title>Descriptin</title>
<funcsynopsis>
<funcprototype>
- <funcdef>viod <function>GtkWindow::set_policy</function></funcdef>
- <paramdef>int <parameter>allw_shrink</parameter></paramdef>
- <paramdef>int <parameter>allw_grow</parameter></paramdef>
+ <funcdef>void <function>GtkWindow::set_policy</function></funcdef>
+ <paramdef>int <parameter>allow_shrink</parameter></paramdef>
+ <paramdef>int <parameter>allow_grow</parameter></paramdef>
<paramdef>int <parameter>auto_shrink</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<simpara>
This function controls how GTK+ will resize the window. The
- parameters <parameter>allw_shirk</parameter> and
- <parameter>allw_grow</parameter> allow the user to resize the
- window if they are set to <literal>TRUE</literal>. The thrid
+ parameters <parameter>allow_shrink</parameter> and
+ <parameter>allow_grow</parameter> allow the user to resize the
+ window if they are set to <literal>TRUE</literal>. The third
parameter, if set to <literal>TRUE</literal> tells GTK+ to
resize the window so that it will be the optimal size for its
children.