cvs: php-gtk /docs/en/classes gtkbutton.xml /docs/stylesheets/xsl/html class.xsl

From: Date: Wed, 09 May 2001 16:51:20 +0000
Subject: cvs: php-gtk /docs/en/classes gtkbutton.xml /docs/stylesheets/xsl/html class.xsl
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1762@lists.php.net to get a copy of this message
andrei Wed May 9 09:51:20 2001 EDT Modified files: /php-gtk/docs/en/classes gtkbutton.xml /php-gtk/docs/stylesheets/xsl/html class.xsl Log: More work on GtkButton docs, trying out signals. Index: php-gtk/docs/en/classes/gtkbutton.xml diff -u php-gtk/docs/en/classes/gtkbutton.xml:1.3 php-gtk/docs/en/classes/gtkbutton.xml:1.4 --- php-gtk/docs/en/classes/gtkbutton.xml:1.3 Tue May 8 15:04:57 2001 +++ php-gtk/docs/en/classes/gtkbutton.xml Wed May 9 09:51:19 2001 @@ -10,8 +10,8 @@ The GtkButton widget is a container widget that can hold any valid child widget derived from <classname>GtkWidget</classname>. The most commonly used child widget is a <classname>GtkLabel</classname>. - </p> - <p> + </para> + <para> The GtkButton widget is most commonly used to call some function the button is pressed. </para> @@ -44,16 +44,18 @@ <method id="gtk.gtkbutton.method.pressed"> <funcsynopsis> <funcprototype> - <funcdef>void <function>pressed</function></funcdef> + <funcdef> + void <function>pressed</function> + <paramdef>void</paramdef> + </funcdef> </funcprototype> </funcsynopsis> <shortdesc> - - - - + Emits <signalname>pressed</signalname> signal. </shortdesc> <desc> <para> - - - - - <!-- sends button_pressed signal to $button sf--> + Makes the button emit the <signalname>pressed</signalname> signal. </para> </desc> </method> @@ -61,16 +63,17 @@ <method id="gtk.gtkbutton.method.released"> <funcsynopsis> <funcprototype> - <funcdef>void <function>released</function></funcdef> + <funcdef>void <function>released</function> + <paramdef>void</paramdef> + </funcdef> </funcprototype> </funcsynopsis> <shortdesc> - - - - + Emits <signalname>released</signalname> signal. </shortdesc> <desc> <para> - - - - - <!-- sends button_released signal to $button sf--> + Makes the button emit the <signalname>released</signalname> signal. </para> </desc> </method> @@ -78,16 +81,17 @@ <method id="gtk.gtkbutton.method.clicked"> <funcsynopsis> <funcprototype> - <funcdef>void <function>clicked</function></funcdef> + <funcdef>void <function>clicked</function> + <paramdef>void</paramdef> + </funcdef> </funcprototype> </funcsynopsis> <shortdesc> - - - - + Emits <signalname>clicked</signalname> signal. </shortdesc> <desc> <para> - - - - - <!-- sends button_clicked signal to $button sf--> + Makes the button emit the <signalname>clicked</signalname> signal. </para> </desc> </method> @@ -95,16 +99,17 @@ <method id="gtk.gtkbutton.method.enter"> <funcsynopsis> <funcprototype> - <funcdef>void <function>enter</function></funcdef> + <funcdef>void <function>enter</function> + <paramdef>void</paramdef> + </funcdef> </funcprototype> </funcsynopsis> <shortdesc> - - - - + Emits <signalname>enter</signalname> signal. </shortdesc> <desc> <para> - - - - - <!-- sends button_enter signal to $button sf--> + Makes the button emit the <signalname>enter</signalname> signal. </para> </desc> </method> @@ -112,16 +117,17 @@ <method id="gtk.gtkbutton.method.leave"> <funcsynopsis> <funcprototype> - <funcdef>void <function>leave</function></funcdef> + <funcdef>void <function>leave</function> + <paramdef>void</paramdef> + </funcdef> </funcprototype> </funcsynopsis> <shortdesc> - - - - + Emits <signalname>leave</signalname> signal. </shortdesc> <desc> <para> - - - - - <!-- sends button_leave signal to $button sf--> + Makes the button emit the <signalname>leave</signalname> signal. </para> </desc> </method> @@ -129,18 +135,19 @@ <method id="gtk.gtkbutton.method.set_relief"> <funcsynopsis> <funcprototype> - <funcdef>void <function>set_relief</function></funcdef> - <paramdef>enum <parameter>GtkReliefStyle</parameter></paramdef> + <funcdef>void <function>set_relief</function> + <paramdef>GtkReliefStyle <parameter>newstyle</parameter></paramdef> + </funcdef> </funcprototype> </funcsynopsis> <shortdesc> - - - - + Sets the button relief style. </shortdesc> <desc> <para> - - - - - <!-- styles - GTK_RELIEF_NORMAL (default), GTK_RELIEF_HALF, - GTK_RELIEF_NONE sf--> + Sets the relief style of the button widget edges. The available styles are + GTK_RELIEF_NORMAL, GTK_RELIEF_HALF, and GTK_RELIEF_NONE. The default + relief style is GTK_RELIEF_NORMAL. </para> </desc> </method> @@ -148,20 +155,47 @@ <method id="gtk.gtkbutton.method.get_relief"> <funcsynopsis> <funcprototype> - <funcdef>void <function>get_relief</function></funcdef> + <funcdef>GtkReliefStyle <function>get_relief</function> + <paramdef>void</paramdef> + </funcdef> </funcprototype> </funcsynopsis> <shortdesc> - - - - + Gets the button relief style. </shortdesc> <desc> <para> - - - - - <!-- returns $button's current relief style sf--> + Returns the current relief style of the button. </para> </desc> </method> </methods> + + <signals> + + <signal id="gtk.gtkbutton.signal.clicked"> + <signalname>clicked</signalname> + <firedwhen> + fired when the button is clicked + </firedwhen> + <userfunc> + <funcprototype> + <funcdef>void <function>userfunc</function> + <paramdef>GtkButton <parameter>button</parameter></paramdef> + </funcdef> + </funcprototype> + </userfunc> + <shortdesc>Emitted when the button is clicked.</shortdesc> + <desc> + <simpara> + Emitted when a button clicked on by the mouse and the cursor stays on the + button. If the cursor is not on the button when the mouse button is + released, the signal is not emitted. + </simpara> + </desc> + </signal> + + </signals> </classentry> Index: php-gtk/docs/stylesheets/xsl/html/class.xsl diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.35 php-gtk/docs/stylesheets/xsl/html/class.xsl:1.36 --- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.35 Tue May 8 14:44:10 2001 +++ php-gtk/docs/stylesheets/xsl/html/class.xsl Wed May 9 09:51:20 2001 @@ -225,7 +225,7 @@ <xsl:template match="method" mode="synoptic.mode"> <xsl:apply-templates select="./funcsynopsis/funcprototype/funcdef/function"/> - <xsl:text>&#8212;</xsl:text> + <xsl:text> &#8212;</xsl:text> <xsl:apply-templates select="./shortdesc" /> <br /> </xsl:template>

« previous php.gtk (#1762) next »