cvs: php-gtk-doc /en/reference/gdk gdkwindow.xml /en/reference/gtk gtkbutton.xml gtkwindow.xml
| From: | Christian Weiske | Date: | Sun, 18 Jul 2004 20:32:34 +0000 |
| Subject: | cvs: php-gtk-doc /en/reference/gdk gdkwindow.xml /en/reference/gtk gtkbutton.xml gtkwindow.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-886@lists.php.net to get a copy of this message | ||
cweiske Sun Jul 18 16:32:34 2004 EDT
Modified files:
/php-gtk-doc/en/reference/gdk gdkwindow.xml
/php-gtk-doc/en/reference/gtk gtkwindow.xml gtkbutton.xml
Log:
Added some answers to frequently asked questions and code samples
http://cvs.php.net/diff.php/php-gtk-doc/en/reference/gdk/gdkwindow.xml?r1=1.3&r2=1.4&ty=u
Index: php-gtk-doc/en/reference/gdk/gdkwindow.xml
diff -u php-gtk-doc/en/reference/gdk/gdkwindow.xml:1.3
php-gtk-doc/en/reference/gdk/gdkwindow.xml:1.4
--- php-gtk-doc/en/reference/gdk/gdkwindow.xml:1.3 Sat Aug 31 04:17:06 2002
+++ php-gtk-doc/en/reference/gdk/gdkwindow.xml Sun Jul 18 16:32:32 2004
@@ -62,14 +62,31 @@
<funcsynopsis>
<funcprototype>
<funcdef>void <function>set_cursor</function></funcdef>
- <paramdef>void</paramdef>
+ <paramdef>
+ <classname>GdkCursor</classname>
+ <parameter>cursor</parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Sets the mouse cursor used in that window.
</shortdesc>
<desc>
-
+ <simpara>
+ Sets the mouse cursor used in that window. If you omit the parameter, the cursor is reset to
the default one.
+ </simpara>
+ <para>
+ <example>
+ <title>Setting the cursor</title>
+ <programlisting role="php">
+<![CDATA[
+$cursor = gdk::cursor_new(150); //GDK_WATCH
+$window = $mainWindow->window; //GdkWindow
+$window->set_cursor($cursor);
+]]>
+ </programlisting>
+ </example>
+ </para>
</desc>
</method>
@@ -316,7 +333,7 @@
</shortdesc>
<desc>
<simpara>
-
+ This property is not available on the Windows operating system.
</simpara>
</desc>
</prop>
http://cvs.php.net/diff.php/php-gtk-doc/en/reference/gtk/gtkwindow.xml?r1=1.11&r2=1.12&ty=u
Index: php-gtk-doc/en/reference/gtk/gtkwindow.xml
diff -u php-gtk-doc/en/reference/gtk/gtkwindow.xml:1.11
php-gtk-doc/en/reference/gtk/gtkwindow.xml:1.12
--- php-gtk-doc/en/reference/gtk/gtkwindow.xml:1.11 Sun Aug 3 13:09:23 2003
+++ php-gtk-doc/en/reference/gtk/gtkwindow.xml Sun Jul 18 16:32:33 2004
@@ -55,6 +55,14 @@
<classname>GtkBox</classname>.
</simpara>
</note>
+ <para>
+ There is no clean way to maximize a window in php-gtk 1. You only can use the following
workaround:
+ <programlisting role="php">
+<![CDATA[
+$window->set_usize(gdk::screen_width(),gdk::screen_height());
+]]>
+ </programlisting>
+ </para>
</desc>
</classmeta>
http://cvs.php.net/diff.php/php-gtk-doc/en/reference/gtk/gtkbutton.xml?r1=1.14&r2=1.15&ty=u
Index: php-gtk-doc/en/reference/gtk/gtkbutton.xml
diff -u php-gtk-doc/en/reference/gtk/gtkbutton.xml:1.14
php-gtk-doc/en/reference/gtk/gtkbutton.xml:1.15
--- php-gtk-doc/en/reference/gtk/gtkbutton.xml:1.14 Sun Aug 3 13:09:22 2003
+++ php-gtk-doc/en/reference/gtk/gtkbutton.xml Sun Jul 18 16:32:33 2004
@@ -19,6 +19,18 @@
The <classname>GtkButton</classname> widget is mainly used to call
some function when the button is pressed.
</simpara>
+ <para>
+ To change the label after the button is created, you can use the
+ <link linkend="gtk.gtkcontainer.method.children">children()</link>
function
+ of the container class:
+ <programlisting role="php">
+<![CDATA[
+//$obj is the button object
+$childs = $obj->children();
+$childs[0]->set_text('new button title');
+]]>
+ </programlisting>
+ </para>
</desc>
</classmeta>