cvs: php-gtk-doc /examples/reference/gtk/gtklabel constructor.phpw /manual/en/reference/gtk gtkhseparator.xml gtklabel.xml gtkseparator.xml
gtkvseparator.xml

From: Date: Sat, 05 Nov 2005 08:29:10 +0000
Subject: cvs: php-gtk-doc /examples/reference/gtk/gtklabel constructor.phpw /manual/en/reference/gtk gtkhseparator.xml gtklabel.xml gtkseparator.xml
gtkvseparator.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1628@lists.php.net to get a copy of this message
cweiske Sat Nov 5 03:29:10 2005 EDT Added files: /php-gtk-doc/examples/reference/gtk/gtklabel constructor.phpw Modified files: /php-gtk-doc/manual/en/reference/gtk gtklabel.xml gtkseparator.xml gtkvseparator.xml gtkhseparator.xml Log: Committing the patches for GtkLabel and GtkSeparator provided by Jp

http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtklabel.xml?r1=1.6&r2=1.7&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtklabel.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtklabel.xml:1.6 php-gtk-doc/manual/en/reference/gtk/gtklabel.xml:1.7 --- php-gtk-doc/manual/en/reference/gtk/gtklabel.xml:1.6 Tue Aug 2 07:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtklabel.xml Sat Nov 5 03:29:08 2005 @@ -14,6 +14,14 @@ a <classname>GtkMenuItem</classname>, or a <classname>GtkOptionMenu</classname>. </para> + <para> + You can have control over the way a GtkLabel will be displayed with + some methods such as <function class="GtkLabel">set_justify</function> + or <function class="GtkLabel">set_width_chars</function>. If you wish to + define an alignment (note that align and justify are not the same thing) + or padding for a GtkLabel, you can insert it into a + <classname>GtkAlignment</classname> container. + </para> </desc> </classmeta> @@ -32,38 +40,20 @@ </shortdesc> <desc> <para> - Creates a new label with an (optional) text. If you set the <parameter>parse_mnemonic</parameter> to true, - the label will set the mnemonic key to the first letter right to the first underscore <literal>_</literal>. + Creates a new label with an (optional) text. If you set the + <parameter>parse_mnemonic</parameter> to true, + the label will set the mnemonic key to the first letter right + to the first underscore <literal>_</literal>. </para> <para> <example> <title>Creating a GtkLabel</title> <programlisting role="php"> -<![CDATA[<?php -function rotate($label) { - $label->set_label($label->get_angle() . ' ' . 'label text - this <b>is</b> a' - . '<span foreground="#F00">very long label</span>' - . 'so we can see <span background="green" size="larger"' - . ' weight="bold">rotation</span> better'); - $label->set_angle($label->get_angle() + 1); - return true; -} - -$wnd = new GtkWindow(); -$wnd->set_default_size(500,500); -$wnd->set_title('GtkLabel::set_angle'); -$wnd->connect_object('destroy', array('gtk', 'main_quit')); - -$label = new GtkLabel('t_est', true); -$label->set_use_markup(true); - -$wnd->add($label); -$wnd->show_all(); - -Gtk::timeout_add(50, 'rotate', $label); -Gtk::main(); -?> -]]></programlisting> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtklabel/constructor.phpw" parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> </example> </para> </desc> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkseparator.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkseparator.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkseparator.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkseparator.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkseparator.xml:1.2 Tue Aug 2 07:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkseparator.xml Sat Nov 5 03:29:08 2005 @@ -4,10 +4,14 @@ <classtitle>GtkSeparator</classtitle> <classparent>GtkWidget</classparent> <shortdesc> - + Base class for <classname>GtkHSeparator</classname> and <classname>GtkVSeparator</classname>. </shortdesc> <desc> - + <para> + <classname>GtkSeparator</classname> is the base class underlying + <classname>GtkHSeparator</classname> and <classname>GtkVSeparator</classname>. + It cannot be used directly. + </para> </desc> </classmeta> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkvseparator.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkvseparator.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkvseparator.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkvseparator.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkvseparator.xml:1.2 Tue Aug 2 07:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkvseparator.xml Sat Nov 5 03:29:08 2005 @@ -4,10 +4,21 @@ <classtitle>GtkVSeparator</classtitle> <classparent>GtkSeparator</classparent> <shortdesc> - + A vertical separator. </shortdesc> <desc> - + <para> + A GtkVSeparator is a widget that consists of a vertical line with a + shadow that makes it look carved into the window. + It is used to separate widgets that are laid out horizontally. + </para> + <para> + Note that GtkVSeparator cannot be added to <classname>GtkMenu</classname>s. + </para> + <para> + See also: + <classname>GtkHSeparator</classname>. + </para> </desc> </classmeta> @@ -21,13 +32,30 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a vertical line. </shortdesc> <desc> - + <para> + Constructing a GtkVSeparator will allow you to separate one or + a groups of widgets on the screen. Use the container's packing + methods (for example, <function class="GtkBox">pack_start</function>) + to organise spacing around the separators. + Check the script below for some examples. + </para> + <para> + <example> + <title>Usage demonstration for GtkHSeparator and GtkVSeparator</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkseparator/separators.phpw" parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> + </para> </desc> </constructor> </constructors> -</classentry> +</classentry> \ No newline at end of file http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkhseparator.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkhseparator.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkhseparator.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkhseparator.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkhseparator.xml:1.2 Tue Aug 2 07:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkhseparator.xml Sat Nov 5 03:29:08 2005 @@ -4,10 +4,23 @@ <classtitle>GtkHSeparator</classtitle> <classparent>GtkSeparator</classparent> <shortdesc> - + A horizontal separator. </shortdesc> <desc> - + <para> + A GtkHSeparator is a widget that consists of a horizontal line with a + shadow that makes it look carved into the window. + It is used to separate widgets that are laid out vertically. + </para> + <para> + Note that GtkHSeparator cannot be added to + <classname>GtkMenu</classname>s. + For that purpose, see <classname>GtkSeparatorMenuItem</classname>. + </para> + <para> + See also: + <classname>GtkVSeparator</classname>. + </para> </desc> </classmeta> @@ -21,10 +34,27 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a horizontal line. </shortdesc> <desc> - + <para> + Constructing a GtkHSeparator and adding it to a widget amounts to the + same thing as drawing a horizontal line across that widget. + Use the container's packing methods (for example, + <function class="GtkBox">pack_start</function>) to organise spacing + around the separators. Check the script below for some examples. + </para> + <para> + <example> + <title>Usage demonstration for GtkHSeparator and GtkVSeparator</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkseparator/separators.phpw" parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> + </para> </desc> </constructor> http://cvs.php.net/co.php/php-gtk-doc/examples/reference/gtk/gtklabel/constructor.phpw?r=1.1&p=1 Index: php-gtk-doc/examples/reference/gtk/gtklabel/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtklabel/constructor.phpw <?php function rotate($label) { $label->set_label($label->get_angle() . ' ' . 'label text - this <b>is</b> a' . '<span foreground="#F00">very long label</span>' . 'so we can see <span background="green" size="larger"' . ' weight="bold">rotation</span> better'); $label->set_angle($label->get_angle() + 1); return true; } $wnd = new GtkWindow(); $wnd->set_default_size(500,500); $wnd->set_title('GtkLabel::set_angle'); $wnd->connect_simple('destroy', array('gtk', 'main_quit')); $label = new GtkLabel('t_est', true); $label->set_use_markup(true); $wnd->add($label); $wnd->show_all(); Gtk::timeout_add(50, 'rotate', $label); Gtk::main(); ?>
« previous php.gtk.doc (#1628) next »