cvs: php-gtk-doc /examples/reference/gtk/gtkfilechooserbutton constructor.phpw /examples/reference/gtk/gtkfileselection constructor.phpw
/manual/en/reference/gdk gdkenum.xml gdkwindow.xml /manual/en/reference/gtk gtkcolorbutton.xml gtkfilechooserbutton.xml gtkfilechooserwidget.xml
gtkimagemenuitem.xml gtkmenubar.xml gtkmenuitem.xml

From: Date: Tue, 20 Dec 2005 22:43:30 +0000
Subject: cvs: php-gtk-doc /examples/reference/gtk/gtkfilechooserbutton constructor.phpw /examples/reference/gtk/gtkfileselection constructor.phpw
/manual/en/reference/gdk gdkenum.xml gdkwindow.xml /manual/en/reference/gtk gtkcolorbutton.xml gtkfilechooserbutton.xml gtkfilechooserwidget.xml
gtkimagemenuitem.xml gtkmenubar.xml gtkmenuitem.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1713@lists.php.net to get a copy of this message
cweiske Tue Dec 20 22:43:30 2005 EDT Added files: /php-gtk-doc/examples/reference/gtk/gtkfilechooserbutton constructor.phpw /php-gtk-doc/examples/reference/gtk/gtkfileselection constructor.phpw Modified files: /php-gtk-doc/manual/en/reference/gdk gdkenum.xml gdkwindow.xml /php-gtk-doc/manual/en/reference/gtk gtkmenuitem.xml gtkfilechooserwidget.xml gtkfilechooserbutton.xml gtkcolorbutton.xml gtkimagemenuitem.xml gtkmenubar.xml Log: Added Anant's two patches and added the GdkWindowTypeHint enum and the link from GdkWindow::set_type_hint

http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gdk/gdkenum.xml?r1=1.3&r2=1.4&diff_format=u Index: php-gtk-doc/manual/en/reference/gdk/gdkenum.xml diff -u php-gtk-doc/manual/en/reference/gdk/gdkenum.xml:1.3 php-gtk-doc/manual/en/reference/gdk/gdkenum.xml:1.4 --- php-gtk-doc/manual/en/reference/gdk/gdkenum.xml:1.3 Thu Aug 4 21:00:00 2005 +++ php-gtk-doc/manual/en/reference/gdk/gdkenum.xml Tue Dec 20 22:43:29 2005 @@ -3033,7 +3033,7 @@ - <enum id="gdk.enum.windowstae"> + <enum id="gdk.enum.windowstate"> <enumname>GdkWindowState</enumname> <desc> <simpara> @@ -3092,5 +3092,74 @@ </enumoption> </enum> + <enum id="gdk.enum.windowtypehint"> + <enumname>GdkWindowTypeHint</enumname> + <desc> + <simpara> + These are hints for the window manager that indicate what type of + function the window has. The window manager can use this when + determining decoration and behaviour of the window. + The hint must be set before mapping the window. + </simpara> + </desc> + + <enumoption> + <value></value> + <optionname>Gdk::WINDOW_TYPE_HINT_NORMAL</optionname> + <shortdesc> + Normal toplevel window. + </shortdesc> + </enumoption> + <enumoption> + <value></value> + <optionname>Gdk::WINDOW_TYPE_HINT_DIALOG</optionname> + <shortdesc> + Dialog window. + </shortdesc> + </enumoption> + <enumoption> + <value></value> + <optionname>Gdk::WINDOW_TYPE_HINT_MENU</optionname> + <shortdesc> + Window used to implement a menu. + </shortdesc> + </enumoption> + <enumoption> + <value></value> + <optionname>Gdk::WINDOW_TYPE_HINT_TOOLBAR</optionname> + <shortdesc> + Window used to implement toolbars. + </shortdesc> + </enumoption> + <enumoption> + <value></value> + <optionname>Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN</optionname> + <shortdesc> + Window used to display a splash screen during application startup. + </shortdesc> + </enumoption> + <enumoption> + <value></value> + <optionname>Gdk::WINDOW_TYPE_HINT_UTILITY</optionname> + <shortdesc> + Utility windows which are not detached toolbars or dialogs. + </shortdesc> + </enumoption> + <enumoption> + <value></value> + <optionname>Gdk::WINDOW_TYPE_HINT_DOCK</optionname> + <shortdesc> + Used for creating dock or panel windows. + </shortdesc> + </enumoption> + <enumoption> + <value></value> + <optionname>Gdk::WINDOW_TYPE_HINT_DESKTOP</optionname> + <shortdesc> + Used for creating the desktop background window. + </shortdesc> + </enumoption> +</enum> + </enums> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gdk/gdkwindow.xml?r1=1.3&r2=1.4&diff_format=u Index: php-gtk-doc/manual/en/reference/gdk/gdkwindow.xml diff -u php-gtk-doc/manual/en/reference/gdk/gdkwindow.xml:1.3 php-gtk-doc/manual/en/reference/gdk/gdkwindow.xml:1.4 --- php-gtk-doc/manual/en/reference/gdk/gdkwindow.xml:1.3 Tue Aug 2 11:01:44 2005 +++ php-gtk-doc/manual/en/reference/gdk/gdkwindow.xml Tue Dec 20 22:43:29 2005 @@ -1401,14 +1401,21 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_type_hint</function></funcdef> - <paramdef>GdkWindowTypeHint <parameter>hint</parameter></paramdef> + <paramdef><enumname>GdkWindowTypeHint</enumname> <parameter>hint</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Provides a hint to the window manager about the functionality of a window </shortdesc> <desc> - + <simpara> + The application can use this call to provide a hint to the window manager + about the functionality of a window. The window manager can use this + information when determining the decoration and behaviour of the window. + </simpara> + <simpara> + The hint must be set before the window is mapped. + </simpara> </desc> </method> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkmenuitem.xml?r1=1.5&r2=1.6&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkmenuitem.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkmenuitem.xml:1.5 php-gtk-doc/manual/en/reference/gtk/gtkmenuitem.xml:1.6 --- php-gtk-doc/manual/en/reference/gtk/gtkmenuitem.xml:1.5 Tue Aug 2 11:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkmenuitem.xml Tue Dec 20 22:43:29 2005 @@ -4,10 +4,20 @@ <classtitle>GtkMenuItem</classtitle> <classparent>GtkItem</classparent> <shortdesc> - + A widget used for holding items in menus. </shortdesc> <desc> - + <para> + The <classname>GtkMenuItem</classname> is the fundamental building block + of all menus. These widgets are responsible for holding valid children + that will make up the menu. Their function is to correctly handle + highlighting, alignment, events and the addition of sub-menus. + </para> + <para> + Since this widget derives itself from <classname>GtkBin</classname>, it + can hold any valid child widget, although only a few may aid in the + creation of menus. + </para> </desc> </classmeta> @@ -17,44 +27,22 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkMenuItem</function></funcdef> - <paramdef>void</paramdef> + <paramdef><optional>string <parameter>label</parameter></optional></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkMenuItem</classname>. </shortdesc> <desc> - - </desc> - </constructor> - - <constructor id="gtk.gtkmenuitem.constructor.new_with_label"> - <funcsynopsis> - <funcprototype> - <funcdef> <function>GtkMenuItem::new_with_label</function></funcdef> - <paramdef>string <parameter>label</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </constructor> - - <constructor id="gtk.gtkmenuitem.constructor.new_with_mnemonic"> - <funcsynopsis> - <funcprototype> - <funcdef> <function>GtkMenuItem::new_with_mnemonic</function></funcdef> - <paramdef>string <parameter>label</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - + <para> + You may use the constructor to create a new menu item, optionally with + a label that may be passed as a parameter. + </para> + <note> + You may precede any character of the string parameter with an + <literal>_</literal>, to set that character as the mnemonic for the + item. This behavior is automatic. + </note> </desc> </constructor> @@ -70,10 +58,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Emits the <literal>activate</literal> signal. </shortdesc> <desc> - + <para> + Use this method on the <classname>GtkMenuItem</classname> to emit its + <literal>activate</literal> signal. + </para> </desc> </method> @@ -85,10 +76,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Emits the <literal>deselect</literal> signal. </shortdesc> <desc> - + <para> + Use this method on the <classname>GtkMenuItem</classname> to emit its + <literal>deactivate</literal> signal. + </para> </desc> </method> @@ -100,14 +94,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns whether the menu item appears justified to the right of its menu + bar. </shortdesc> <desc> <para> + Use this method to determine whether or not the + <classname>GtkMenuItem</classname> appears justified to the right of + the menu bar it is attached to. The function return + <literal>TRUE</literal> if it does, <literal>FALSE</literal> if not, + or if it is not attached to any menu bar. + </para> + <para> See also: <function class="GtkMenuItem">set_right_justified</function> </para> - </desc> </method> @@ -119,15 +120,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Return the submenu attached to the menu item. </shortdesc> <desc> <para> + Use this method to return the submenu attached to the menu item. The + function will return the submenu widget, <literal>NULL</literal> if no + submenu is associated with the menu item. + </para> + <para> See also: <function class="GtkMenuItem">remove_submenu</function>, <function class="GtkMenuItem">set_submenu</function> </para> - </desc> </method> @@ -139,15 +144,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Removes the submenu associated with the menu item. </shortdesc> <desc> <para> + Use this method to remove the submenu that is associated with the menu + item. + </para> + <note> + This method does not result in the submenu being destroyed, merely + detached from the menu item. You may reuse the submenu widget + elsewhere. + </note> + <para> See also: <function class="GtkMenuItem">get_submenu</function>, <function class="GtkMenuItem">set_submenu</function> </para> - </desc> </method> @@ -159,10 +172,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Sets the menu item to be right aligned. </shortdesc> <desc> - + <para> + Use this method to set the menu item to be justified to the right. + </para> + <note> + WARNING! This method has been deprecated in PHP-Gtk2, and should + NOT be used in newly written code. Use + <function class="GtkMenuItem">set_right_justified</function> instead. + </note> </desc> </method> @@ -174,10 +194,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Emits the <literal>select</literal> signal. </shortdesc> <desc> - + <para> + Use this method on the <classname>GtkMenuItem</classname> to emit its + <literal>select</literal> signal. + </para> </desc> </method> @@ -189,10 +212,10 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the accelerator path for the menu item. </shortdesc> <desc> - + <!-- FIXME --> </desc> </method> @@ -204,14 +227,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Aligns the menu item to the right. </shortdesc> <desc> <para> + Use this method if you want the menu item appear at the far right when + you add it to a menu bar. + </para> + <para> See also: <function class="GtkMenuItem">get_right_justified</function> </para> - </desc> </method> @@ -223,15 +249,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the submenu for the menu item. </shortdesc> <desc> <para> + This method is useful in associating a <classname>GtkMenu</classname> + as a submenu for the specified menu item. The parameter passed must be + a valid <classname>GtkWidget</classname> (most of the time, a + <classname>GtkMenu</classname>) + </para> + <para> See also: <function class="GtkMenuItem">get_submenu</function>, <function class="GtkMenuItem">remove_submenu</function> </para> - </desc> </method> @@ -243,10 +274,11 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Emits the <literal>toggle-size-allocate</literal> signal for the menu + item. </shortdesc> <desc> - + <!-- FIXME --> </desc> </method> @@ -258,7 +290,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + <!-- FIXME Not yet Implemented? --> </shortdesc> <desc> @@ -278,9 +310,9 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the menu item is activated. </shortdesc> <desc> - </desc> </signal> @@ -293,9 +325,9 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the menu is activated and if the menu item has a submenu. </shortdesc> <desc> - </desc> </signal> @@ -309,9 +341,9 @@ </funcprototype> </funcsynopsis> <shortdesc> + </shortdesc> <desc> - </desc> </signal> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkfilechooserwidget.xml?r1=1.2&r2=1.3&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkfilechooserwidget.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkfilechooserwidget.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkfilechooserwidget.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkfilechooserwidget.xml:1.2 Tue Aug 2 11:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkfilechooserwidget.xml Tue Dec 20 22:43:29 2005 @@ -4,10 +4,16 @@ <classtitle>GtkFileChooserWidget</classtitle> <classparent>GtkVBox</classparent> <shortdesc> - + A widget that allows selection of a file. </shortdesc> <desc> - + <para> + This widget is suitable for allowing the user to choose files. It is + the primary element of the <classname>GtkFileChooserDialog</classname>. + For all practical purposes it is sufficient to use the dialog box + alone. However, certain specialized applications might require this + widget to be part of a larger window. + </para> </desc> </classmeta> @@ -17,14 +23,21 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkFileChooserWidget</function></funcdef> - <paramdef>GtkFileChooserAction <parameter>action</parameter></paramdef> + <paramdef><enumname>GtkFileChooserAction</enumname> <parameter>action</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkFileChooserWidget</classname>. </shortdesc> <desc> - + <para> + Use this function to create a file chooser widget that can be embedded + in custom windows. + </para> + <note> + You need not call this function if you are using a + <classname>GtkFileChooserDialog</classname>. + </note> </desc> </constructor> @@ -32,15 +45,20 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkFileChooserWidget::new_with_backend</function></funcdef> - <paramdef>GtkFileChooserAction <parameter>action</parameter></paramdef> + <paramdef><enumname>GtkFileChooserAction</enumname> <parameter>action</parameter></paramdef> <paramdef>string <parameter>backend</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkFileChooserWidget</classname> with a + specified backend. </shortdesc> <desc> - + <para> + This constructor is extremely useful if you want to allow non-local + files to be selected and the such. This a file chooser widget and can + be embedded in custom windows. + </para> </desc> </constructor> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkfilechooserbutton.xml?r1=1.2&r2=1.3&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkfilechooserbutton.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkfilechooserbutton.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkfilechooserbutton.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkfilechooserbutton.xml:1.2 Tue Aug 2 11:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkfilechooserbutton.xml Tue Dec 20 22:43:29 2005 @@ -3,11 +3,22 @@ <classmeta> <classtitle>GtkFileChooserButton</classtitle> <classparent>GtkHBox</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkfilechooserbutton.png"/> <shortdesc> - + A button that launches a file chooser dialog. </shortdesc> <desc> - + <para> + The <classname>GtkFileChooserButton</classname> is very similar in + functionality to a <classname>GtkColorButton</classname>. It is a + special kind of button that allows the user to select a file. + </para> + <para> + The button contains an area that displays the file name of the current + file selected and also displays a button that allows the user to launch + a file selection dialog. After the dialog is launched, the button is + immediately associated to the new file selected by the user. + </para> </desc> </classmeta> @@ -18,14 +29,26 @@ <funcprototype> <funcdef> <function>GtkFileChooserButton</function></funcdef> <paramdef>string <parameter>title</parameter></paramdef> - <paramdef>GtkFileChooserAction <parameter>action</parameter></paramdef> + <paramdef><enumname>GtkFileChooserAction</enumname> <parameter>action</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkFileChooserButton</classname> </shortdesc> <desc> - + <para> + Use this constructor to create a new file-selecting button widget. + </para> + <example> + <title>Using a GtkFileChooser button.</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkfilechooserbutton/constructor.phpw" + parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> </desc> </constructor> @@ -41,14 +64,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the title of the file chooser dialog. </shortdesc> <desc> <para> + Use this method to determine the title of the consequential + <classname>GtkFileChooserDialog</classname> that will be presented + when the button is clicked. + </para> + <para> See also: <function class="GtkFileChooserButton">set_title</function> </para> - </desc> </method> @@ -60,14 +87,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the width of the button. </shortdesc> <desc> <para> + This method will return the width (in characters) of the button + widget. Obviously, this is determined by the label associated with the + button. + </para> + <para> See also: <function class="GtkFileChooserButton">set_width_chars</function> </para> - </desc> </method> @@ -79,14 +110,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the title of the file chooser dialog. </shortdesc> <desc> <para> + Use this method to set the title of the consequential + <classname>GtkFileChooserDialog</classname> that will be presented + when the button is clicked. + </para> + <para> See also: <function class="GtkFileChooserButton">get_title</function> </para> - </desc> </method> @@ -98,14 +133,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the width between the button and its label. </shortdesc> <desc> <para> + Use this method to set the width that the button will use. Pass the + width in number of characters. + </para> + <para> See also: <function class="GtkFileChooserButton">get_width_chars</function> </para> - </desc> </method> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkcolorbutton.xml?r1=1.4&r2=1.5&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcolorbutton.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcolorbutton.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkcolorbutton.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkcolorbutton.xml:1.4 Tue Aug 2 11:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcolorbutton.xml Tue Dec 20 22:43:29 2005 @@ -3,11 +3,19 @@ <classmeta> <classtitle>GtkColorButton</classtitle> <classparent>GtkButton</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkcolorbutton.png"/> <shortdesc> - + A button that launches a color selection dialog. </shortdesc> <desc> - + <para> + <classname>GtkColorButton</classname> is a button that performs two + functions. One is to display the current color selected (or the default + color is no color has been selected yet) and the other is to allow the + user to launch a <classname>GtkColorSelectionDialog</classname> to + select a color. It is a suitable widget that may be displayed wherever + you require the user to select a color for a specific purpose. + </para> </desc> </classmeta> @@ -21,13 +29,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkColorButton</classname>. </shortdesc> <desc> - + <para> + The constructor creates a new widget that is a slightly modified + button. The <classname>GtkColorButton</classname> contains a small area + of color indicating the current color selected. Clicking it will result + in the launching of a color selection dialog, allowing the user to + select a color. The small area of color on the button will be updated + as soon as the user is finished selecting a color. + </para> </desc> </constructor> - </constructors> <methods> @@ -40,14 +54,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current alpha value. </shortdesc> <desc> <para> + Use this method to determine the alpha value (transparency) of the + color currently selected. + </para> + <para> See also: <function class="GtkColorButton">set_alpha</function> </para> - </desc> </method> @@ -59,14 +76,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current color selected. </shortdesc> <desc> <para> + Use this method to determine the current color selected by the user. + </para> + <para> See also: <function class="GtkColorButton">set_color</function> </para> - </desc> </method> @@ -78,14 +97,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the title of the color selection dialog. </shortdesc> <desc> <para> + Use this method to determine the title of the + <classname>GtkColorSelectionDialog</classname> that will be launched + on click of the <classname>GtkColorButton</classname>. + </para> + <para> See also: <function class="GtkColorButton">set_title</function> </para> - </desc> </method> @@ -97,14 +120,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines whether the color selection dialog uses the alpha channel + or not. </shortdesc> <desc> <para> + This method will return <literal>TRUE</literal> if the consequential + <classname>GtkColorSelectionDialog</classname> use the alpha channel + and <literal>FALSE</literal> if it doesn't. + </para> + <para> See also: <function class="GtkColorButton">set_use_alpha</function> </para> - </desc> </method> @@ -116,14 +144,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the current alpha value. </shortdesc> <desc> <para> + Use this method to set the current opacity of the color selected. The + alpha value may be passed and an integer between 0 and 65535. + </para> + <para> See also: <function class="GtkColorButton">get_alpha</function> </para> - </desc> </method> @@ -135,14 +166,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the current color selected. </shortdesc> <desc> <para> + Use this method to set the current color selected. + </para> + <para> See also: <function class="GtkColorButton">get_color</function> </para> - </desc> </method> @@ -154,14 +187,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the title of the color selection dialog. </shortdesc> <desc> <para> + Use this method to set the title of the consequential + <classname>GtkColorSelectionDialog</classname>. + </para> + <para> See also: <function class="GtkColorButton">get_title</function> </para> - </desc> </method> @@ -173,14 +209,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the color selection dialog will use the alpha channel or + not. </shortdesc> <desc> <para> + Use this method to set whether the consequential + <classname>GtkColorSelectionDialog</classname> would use the alpha + channel or not. Pass <literal>TRUE</literal> if you want it to, + <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkColorButton">get_use_alpha</function> </para> - </desc> </method> @@ -197,6 +239,7 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the user selects a color. </shortdesc> <desc> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkimagemenuitem.xml?r1=1.2&r2=1.3&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkimagemenuitem.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkimagemenuitem.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkimagemenuitem.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkimagemenuitem.xml:1.2 Tue Aug 2 11:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkimagemenuitem.xml Tue Dec 20 22:43:29 2005 @@ -3,11 +3,18 @@ <classmeta> <classtitle>GtkImageMenuItem</classtitle> <classparent>GtkMenuItem</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkimagemenuitem.png"/> <shortdesc> - + A menu item with an icon. </shortdesc> <desc> - + <para> + This is essentially a <classname>GtkMenuItem</classname> which has an + icon displayed next to the text label. + </para> + <para> + These items are frequently used for menu items like New, Open or Save. + </para> </desc> </classmeta> @@ -17,14 +24,25 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkImageMenuItem</function></funcdef> - <paramdef>void</paramdef> + <!-- FIXME funny behavior! --> + <optional> + <paramdef>string <parameter>label</parameter></paramdef> + </optional> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new menu item with an icon. </shortdesc> <desc> - + <para> + Use the constructor to generate a new menu item with an icon. You may + pass a string as the label, or a stock id, if you want to use the + existing stock icons. + </para> + <para> + You may even precede a character of the label with an + <literal>_</literal> to indicate the mnemonic for the menu item. + </para> </desc> </constructor> @@ -37,10 +55,9 @@ </funcprototype> </funcsynopsis> <shortdesc> - + <!-- FIXME Not yet implemented --> </shortdesc> <desc> - </desc> </constructor> @@ -52,10 +69,9 @@ </funcprototype> </funcsynopsis> <shortdesc> - + <!-- FIXME Not yet implemented --> </shortdesc> <desc> - </desc> </constructor> @@ -67,7 +83,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + <!--FIXME No need for this, automatically done with constructor --> </shortdesc> <desc> @@ -86,14 +102,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gets the widget set as the image for the menu item. </shortdesc> <desc> <para> + Use this method to retrieve the image widget currently associated with the + menu item. + </para> + <para> See also: <function class="GtkImageMenuItem">set_image</function> </para> - </desc> </method> @@ -105,14 +124,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the image widget for the menu item. </shortdesc> <desc> <para> + Use this method to set the image for the menu item to the specified + widget. + </para> + <para> See also: <function class="GtkImageMenuItem">get_image</function> </para> - </desc> </method> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml?r1=1.2&r2=1.3&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml:1.2 Tue Aug 2 11:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml Tue Dec 20 22:43:29 2005 @@ -4,10 +4,15 @@ <classtitle>GtkMenuBar</classtitle> <classparent>GtkMenuShell</classparent> <shortdesc> - + A widget that holds menu items. </shortdesc> <desc> - + <para> + This widget forms the base to create a general menu. First, you must + create a <classname>GtkMenuBar</classname> and then add + <classname>GtkMenuItem</classname>s to it. The result will be a + standard menu bar that may be placed appropriately in the application. + </para> </desc> </classmeta> @@ -21,10 +26,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkMenuBar</classname> </shortdesc> <desc> - + <para> + Use the constructor to create a new <classname>GtkMenuBar</classname> + widget and then add <classname>GtkMenuItem</classname>s to it. + </para> + <note> + This widget is a subclass of <classname>GtkMenuShell</classname>, + hence all methods that can be applied to + <classname>GtkMenuShell</classname> may be used here. + </note> </desc> </constructor> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/examples/reference/gtk/gtkfilechooserbutton/constructor.phpw?view=markup&rev=1.1 Index: php-gtk-doc/examples/reference/gtk/gtkfilechooserbutton/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkfilechooserbutton/constructor.phpw <?php /* Creating and initialising a new window to add the FileChooser to */ $window = new GtkWindow(); /* Quit the main loop when window is destroyed */ $window->connect_simple('destroy', array('gtk', 'main_quit')); /* Setting parameters of the window */ $window->set_title('GtkFileChooser Demo'); $window->set_default_size(250,60); $window->set_border_width(10); /* * Creating a new file chooser button * Note that the second parameter dictates what action * will be performed when the open button of the * GtkFileChooserDialog widget is clicked */ $thebutton = new GtkFileChooserButton('Select the File', Gtk::FILE_CHOOSER_ACTION_OPEN); /* Creating a label and a quit button */ $thelabel = new GtkLabel('Click to select a File: '); $toquit = new GtkButton('_Quit'); $toquit->connect_simple('clicked', array($window, 'destroy')); /* Creating a layout to add the elements */ $thehbox = new GtkHBox(); $thevbox = new GtkVBox(); /* Adding the elements to the layout */ $thehbox->pack_start($thelabel); $thehbox->pack_start($thebutton); $thevbox->pack_start($thehbox); $thevbox->pack_start($toquit); /* Displaying the window and starting the main loop */ $window->add($thevbox); $window->show_all(); Gtk::main(); ?> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/examples/reference/gtk/gtkfileselection/constructor.phpw?view=markup&rev=1.1 Index: php-gtk-doc/examples/reference/gtk/gtkfileselection/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkfileselection/constructor.phpw <?php /* Creating and initialising the file selection prompt */ $filePrompt = new GtkFileSelection('GtkFileSelection Demo'); $filePrompt->connect_simple('destroy', array('gtk', 'main_quit')); /* Adding a quit button that destroys the prompt */ $filePrompt->cancel_button->set_label('Quit'); $filePrompt->cancel_button->connect_simple('clicked', array($filePrompt, 'destroy')); /* Add an OK button that displays the file selected on click */ $filePrompt->ok_button->set_label('Show the file'); $filePrompt->ok_button->connect('clicked', 'showFile'); /* Callback function that displays the file name */ function showFile($okbutton) { $filePrompt = $okbutton->get_toplevel(); $fileName = $filePrompt->get_filename(); $message = new GtkMessageDialog(null, 0, Gtk::MESSAGE_INFO, Gtk::BUTTONS_OK, 'You selected: ' . $fileName); $message->run(); $message->destroy(); } /* Show the prompt and start the main loop */ $filePrompt->show(); Gtk::main(); ?>
« previous php.gtk.doc (#1713) next »