cvs: php-gtk-doc /images/reference/gtk gtkbutton.png /manual/en/reference/gtk gtkbutton.xml

From: Date: Mon, 27 Mar 2006 19:15:56 +0000
Subject: cvs: php-gtk-doc /images/reference/gtk gtkbutton.png /manual/en/reference/gtk gtkbutton.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-2018@lists.php.net to get a copy of this message
anant Mon Mar 27 19:15:56 2006 UTC Added files: /php-gtk-doc/images/reference/gtk gtkbutton.png Modified files: /php-gtk-doc/manual/en/reference/gtk gtkbutton.xml Log: Some tender loving care for GtkButton :)

http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkbutton.xml?r1=1.9&r2=1.10&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkbutton.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkbutton.xml:1.9 php-gtk-doc/manual/en/reference/gtk/gtkbutton.xml:1.10 --- php-gtk-doc/manual/en/reference/gtk/gtkbutton.xml:1.9 Sun Mar 26 02:50:40 2006 +++ php-gtk-doc/manual/en/reference/gtk/gtkbutton.xml Mon Mar 27 19:15:56 2006 @@ -75,12 +75,12 @@ </funcprototype> </funcsynopsis> <shortdesc> - Creates a <classname>GtkButton</classname> from stock. + Creates a <classname>GtkButton</classname> from stock. </shortdesc> <desc> <para> This method creates a new button with an image and label from stock. See - <enumname>GtkStockItems</enumname> for a list of the options available. + <enumname>GtkStockItems</enumname> for a list of options available. </para> </desc> </constructor> @@ -100,7 +100,9 @@ </shortdesc> <desc> <para> - The clicked() method emits the "clicked" signal to the button. + Use this method to emit the + <signalname class="GtkButton">clicked</signalname> signal + to the button. </para> </desc> </method> @@ -117,7 +119,9 @@ </shortdesc> <desc> <para> - The enter() method emits the "enter" signal to the button. + Use this method to emit the + <signalname class="GtkButton">enter</signalname> signal + to the button. </para> </desc> </method> @@ -130,18 +134,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - Returns the xalign and the yalign. + Returns the xalign and the yalign properties. </shortdesc> <desc> <para> - The get_alignment() method returns the values of the "xalign" and "yalign" properties. - See the <function class="GtkButton">set_alignment</function> method for more information. + Use this method to return the values of the + <fieldname class="GtkButton">xalign</fieldname> and + <fieldname class="GtkButton">yalign</fieldname> properties. + See the <function class="GtkButton">set_alignment</function> method + for more information. </para> <para> See also: <function class="GtkButton">set_alignment</function> </para> - </desc> </method> @@ -153,18 +159,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - Returns the value of the "focus-on-click" property. + Returns the value of the "focus-on-click" property. </shortdesc> <desc> <para> - The get_focus_on_click() method returns the value of the "focus-on-click" property. - If <literal>true</literal>, the button grabs focus when it is clicked by the mouse . + Use this method to return the value of the + <fieldname class="GtkButton">focus-on-click</fieldname> property. + If <literal>true</literal>, the button grabs focus when it is + clicked by the mouse. </para> <para> See also: <function class="GtkButton">set_focus_on_click</function> </para> - </desc> </method> @@ -176,14 +183,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the widget set as the image for the button. </shortdesc> <desc> <para> + Use this method to retrieve the widget that is currently set as the image + for the button. The image may have been explicitly set using + <function class="GtkButton">set_image</function> or + <function class="GtkButton">new_from_stock</function>. + </para> + <para> See also: <function class="GtkButton">set_image</function> </para> - </desc> </method> @@ -199,11 +211,13 @@ </shortdesc> <desc> <para> - The get_label() method retrieves the text from the label of the button, as set by - <function class="GtkButton">set_label</function> or by the <classname>GtkButton</classname> - constructor. This string is owned by the widget and must not be modified or freed. - If the label text has not been set the return value will be null. This will be the - case if you create an empty button with <classname>GtkButton</classname> to use as a container. + Use this method to retrieve the text from the label of the button, + as set by <function class="GtkButton">set_label</function> or by the + <classname>GtkButton</classname> constructor. This string is owned by + the widget and must not be modified or freed. If the label text has + not been set the return value will be null. This will be the case if + you create an empty button with <classname>GtkButton</classname> to use + as a container. </para> <para> See also: @@ -225,13 +239,14 @@ </shortdesc> <desc> <para> - The get_relief() method retrieves the current relief style (the "relief" property) set for the button. + Use this method to retrieve the current relief style + set for the button as specified by its + <fieldname class="GtkButton">relief</fieldname> property. </para> <para> See also: <function class="GtkButton">set_relief</function> </para> - </desc> </method> @@ -243,18 +258,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - Returns the value of the "use_stock" property. + Returns the "use_stock" property. </shortdesc> <desc> <para> - The get_use_stock() method returns the value of the "use_stock" property. - If <literal>true</literal>, the button label is used to select a stock item instead of being used directly as the label text. + Use this method to return the value of the + <fieldname class="GtkButton">use_stock</fieldname> property. + If <literal>true</literal>, the button label is used to select + a stock item instead of being used directly as the label text. </para> <para> See also: <function class="GtkButton">set_use_stock</function> </para> - </desc> </method> @@ -266,18 +282,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - Returns whether the "use_underline" property. + Returns the "use_underline" property. </shortdesc> <desc> <para> - The get_use_underline() method returns whether the "use_underline" property is <literal>true</literal> meaning - that an underscore in the button label indicates a mnemonic. + Use this method to return the + <fieldname class="GtkButton">use_underline</fieldname> + property. If <literal>true</literal>, an underscore in + the button label indicates a mnemonic. </para> <para> See also: <function class="GtkButton">set_use_underline</function> </para> - </desc> </method> @@ -289,11 +306,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - The leave() method emits the "leave" signal to the button. + Emits the "leave" signal to the button. </shortdesc> <desc> <para> - The leave() method emits the "leave" signal to the button. + Use this method to emit the + <signalname class="GtkButton">leave</signalname> signal to + the button. </para> </desc> </method> @@ -306,11 +325,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - The pressed method emits the "pressed" signal to the button. + Emits the "pressed" signal to the button. </shortdesc> <desc> <para> - The pressed method emits the "pressed" signal to the button. + Use this method to emit the + <signalname class="GtkButton">pressed</signalname> + signal to the button. </para> </desc> </method> @@ -323,11 +344,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - The released() method emits the "released" signal to the button. + Emits the "released" signal to the button. </shortdesc> <desc> <para> - The released() method emits the "released" signal to the button. + Use this method to emit the + <signalname class="GtkButton">released</signalname> + signal to the button. </para> </desc> </method> @@ -345,15 +368,16 @@ </shortdesc> <desc> <para> - The set_alignment() method sets the "xalign" and "yalign" properties to the value of - xalign and yalign respectively. This property has no effect unless the child is a <classname>GtkMisc</classname> - or a <classname>GtkAlignment</classname>. + Use this method to set the "xalign" and "yalign" properties + to the value of parameters <literal>xalign</literal> and + <literal>yalign</literal> respectively. This property has + no effect unless the child is a <classname>GtkMisc</classname> + or a <classname>GtkAlignment</classname>. </para> <para> See also: <function class="GtkButton">get_alignment</function> </para> - </desc> </method> @@ -365,18 +389,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - Sets the "focus-on-click" property. + Sets the "focus-on-click" property. </shortdesc> <desc> <para> - The set_focus_on_click() method sets the "focus-on-click" property to the value of - focus_on_click. If focus_on_click is <literal>true</literal>, the button grabs focus when it is clicked by the mouse. + Use this method to set the + <fieldname class="GtkButton">focus-on-click</fieldname> + property to the value of the <literal>focus_on_click</literal> + parameter. If it is <literal>true</literal>, the button + grabs focus when it is clicked by the mouse. </para> <para> See also: <function class="GtkButton">get_focus_on_click</function> </para> - </desc> </method> @@ -388,14 +414,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the widget as an image for the button. </shortdesc> <desc> <para> + Use this method to set the widget as an image for the button. You can use + this to display an image next to the label of the button. + </para> + <para> See also: <function class="GtkButton">get_image</function> </para> - </desc> </method> @@ -407,23 +436,22 @@ </funcprototype> </funcsynopsis> <shortdesc> - Sets the text of the button label to label + Sets the text of the button. </shortdesc> <desc> <para> - <literal>label </literal>: a string to be set as the text in the button label. - </para> - <para> - The set_label() method sets the text of the button label to label - (also sets the "label" property). This string is also used to select - the stock item if the "use_stock" property is <literal>true</literal> and the string - references a stock item. Any previously set labels will be cleared. + Use this method to set the text of the button label to + the parameter <literal>label</literal>. This also sets the + <fieldname class="GtkButton">label</fieldname>. This string + is also used to select the stock item if the + <fieldname class="GtkButton">use_stock</fieldname> property is + <literal>true</literal> and the string references a stock item. + Any previously set labels will be cleared. </para> <para> See also: <function class="GtkButton">get_label</function> </para> - </desc> </method> @@ -435,22 +463,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - Sets the relief style of the edges of the button. + Sets the current relief style of the button. </shortdesc> <desc> <para> - <literal>newstyle</literal> :one of Gtk::RELIEF_NONE, Gtk::RELIEF_NORMAL or Gtk::RELIEF_HALF - </para> - <para> - The set_relief() method sets the relief style of the edges of the button. - Three styles exist, Gtk::RELIEF_NORMAL, Gtk::RELIEF_HALF, Gtk::RELIEF_NONE. - The default style is, as one can guess, Gtk::RELIEF_NORMAL. + Use this method to set the current relief style for the button and also + set the <fieldname class="GtkButton">relief</fieldname> property. The + parameter <literal>newstyle</literal> must be one of those specified in + <enum id="gtk.enum.reliefstyle">GtkReliefStyle</enum>s. + The default is + <optionname enum="GtkReliefStyle">Gtk::RELIEF_NORMAL</optionname> </para> <para> See also: <function class="GtkButton">get_relief</function> </para> - </desc> </method> @@ -458,25 +485,24 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_use_stock</function></funcdef> - <paramdef>bool <parameter>use_stock</parameter></paramdef> + <paramdef>bool <parameter>stock</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Sets the "use_stock" property to the value of use_stock. + Sets the "use_stock" property. </shortdesc> <desc> <para> - <literal>use_stock </literal> : If <literal>true</literal> the button should use a stock item. - </para> - <para> - The set_use_stock() method sets the "use_stock" property to the value of use_stock. - If use_stock is <literal>true</literal>, the label set on the button is used as a stock id to select the stock item for the button. + Use this method to set the <fieldname class="GtkButton">use_stock</fieldname> + property of the button to the parameter <literal>stock</literal>. + If <literal>use_stock</literal> is <literal>true</literal>, the label + set on the button is used as a stock id to select the stock item + for the button. </para> <para> See also: <function class="GtkButton">get_use_stock</function> </para> - </desc> </method> @@ -484,27 +510,24 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_use_underline</function></funcdef> - <paramdef>bool <parameter>use_underline</parameter></paramdef> + <paramdef>bool <parameter>underline</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Sets the "use_underline" property to the value of use_underline. + Sets the "use_underline" property. </shortdesc> <desc> <para> - <literal>use_underline</literal> : <literal>true</literal> if underscores in the text indicate mnemonics - </para> - <para> - The set_use_underline() method sets the "use_underline" property to the value of - use_underline. If use_underline is <literal>true</literal>, an underscore in the text of the button label - indicates that the next character should be underlined and used for the mnemonic accelerator - key if it is also the first underlined character. + Use this method to set the <fieldname class="GtkButton">use_underline</fieldname> + property of the button to the parameter <literal>underline</literal>. + If <literal>use_underline</literal> is <literal>true</literal>, an underscore + in the text of the button label indicates that the next character should be + underlined and used for the mnemonic accelerator key. </para> <para> See also: <function class="GtkButton">get_use_underline</function> </para> - </desc> </method> @@ -518,19 +541,19 @@ <funcprototype> <funcdef>void <cbfunction>callback</cbfunction></funcdef> <paramdef>GtkButton <parameter>button</parameter></paramdef> - <paramdef>mixed <parameter>user_param</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - For a button it causes the "clicked" signal to be emitted. + Emitted when the activate method is called. </shortdesc> <desc> <para> - The "activate" signal is emitted when the <function class="GtkWidget">activate</function> method is called. - For a button it causes the "clicked" signal to be emitted. + Emitted when the + <function class="GtkWidget">activate</function> method is called. + For a button it causes the + <signalname class="GtkButton">clicked</signalname> signal to + be emitted. </para> - <para> <literal>button </literal>: the button that received the signal </para> - <para> <literal>user_param1 </literal>: the first user parameter (if any) specified with the connect() method</para> </desc> </signal> @@ -540,18 +563,16 @@ <funcprototype> <funcdef>void <cbfunction>callback</cbfunction></funcdef> <paramdef>GtkButton <parameter>button</parameter></paramdef> - <paramdef>mixed <parameter>user_param</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - The "clicked" signal is emitted when the mouse button is pressed and released while the pointer is over the button. + Emitted when the user clicks the button. </shortdesc> <desc> <para> - The "clicked" signal is emitted when the mouse button is pressed and released while the pointer is over the button. + Emitted when the user clicks the button and also when the + <signalname class="GtkButton">activate</signalname> signal is generated. </para> - <para> <literal>button </literal>: the button that received the signal </para> - <para> <literal>user_param1 </literal>: the first user parameter (if any) specified with the connect() method</para> </desc> </signal> @@ -561,18 +582,15 @@ <funcprototype> <funcdef>void <cbfunction>callback</cbfunction></funcdef> <paramdef>GtkButton <parameter>button</parameter></paramdef> - <paramdef>mixed <parameter>user_param</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - The "enter" signal is emitted when the pointer enters the button. + Emitted when the mouse pointer enters the button. </shortdesc> <desc> <para> - The "enter" signal is emitted when the pointer enters the button. + Emitted when the mouse pointer enters the button. </para> - <para> <literal>button </literal>: the button that received the signal </para> - <para> <literal>user_param1 </literal>: the first user parameter (if any) specified with the connect() method</para> </desc> </signal> @@ -582,18 +600,15 @@ <funcprototype> <funcdef>void <cbfunction>callback</cbfunction></funcdef> <paramdef>GtkButton <parameter>button</parameter></paramdef> - <paramdef>mixed <parameter>user_param</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - The "leave" signal is emitted when the pointer leaves the button. + Emitted when the mouse pointer leaves the button. </shortdesc> <desc> <para> - The "leave" signal is emitted when the pointer leaves the button. + Emitted when the mouse pointer leaves the button. </para> - <para> <literal>button </literal>: the button that received the signal </para> - <para> <literal>user_param1 </literal>: the first user parameter (if any) specified with the connect() method</para> </desc> </signal> @@ -603,18 +618,15 @@ <funcprototype> <funcdef>void <cbfunction>callback</cbfunction></funcdef> <paramdef>GtkButton <parameter>button</parameter></paramdef> - <paramdef>mixed <parameter>user_param</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - The "pressed" signal is emitted when the mouse button is pressed while the pointer is over the button. + Emitted when the mouse button is pressed over the button. </shortdesc> <desc> <para> - The "pressed" signal is emitted when the mouse button is pressed while the pointer is over the button. + Emitted when the mouse button is pressed over the button. </para> - <para> <literal>button </literal>: the button that received the signal </para> - <para> <literal>user_param1 </literal>: the first user parameter (if any) specified with the connect() method</para> </desc> </signal> @@ -624,18 +636,15 @@ <funcprototype> <funcdef>void <cbfunction>callback</cbfunction></funcdef> <paramdef>GtkButton <parameter>button</parameter></paramdef> - <paramdef>mixed <parameter>user_param</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - The "released" signal is emitted when the button is released no matter where the pointer is. + Emitted when the mouse button is released over the button. </shortdesc> <desc> <para> - The "released" signal is emitted when the button is released no matter where the pointer is. + Emitted when the mouse button is released over the button. </para> - <para> <literal>button </literal>: the button that received the signal </para> - <para> <literal>user_param1 </literal>: the first user parameter (if any) specified with the connect() method</para> </desc> </signal>
« previous php.gtk.doc (#2018) next »