cvs: php-gtk-doc /en/reference/gtk gtklabel.xml
| From: | Steph Fox | Date: | Wed, 29 Jan 2003 18:39:08 +0000 |
| Subject: | cvs: php-gtk-doc /en/reference/gtk gtklabel.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-600@lists.php.net to get a copy of this message | ||
sfox Wed Jan 29 13:39:08 2003 EDT
Modified files:
/php-gtk-doc/en/reference/gtk gtklabel.xml
Log:
Clarifying the role of set_justify()
Index: php-gtk-doc/en/reference/gtk/gtklabel.xml
diff -u php-gtk-doc/en/reference/gtk/gtklabel.xml:1.9 php-gtk-doc/en/reference/gtk/gtklabel.xml:1.10
--- php-gtk-doc/en/reference/gtk/gtklabel.xml:1.9 Wed Jan 29 11:34:47 2003
+++ php-gtk-doc/en/reference/gtk/gtklabel.xml Wed Jan 29 13:39:08 2003
@@ -119,9 +119,20 @@
options are <enumname>GtkJustification</enumname> enumerated flags,
the default setting being <literal>GTK_JUSTIFY_CENTER</literal>.
</simpara>
+ <simpara>
+ Justification is relative to existing lines of text, and should be
+ used in combination with
+ <function class="GtkLabel">set_line_wrap()</function>. It is
+ irrelevant where there is only one line. If you need to set the
+ text alignment in a single-line label, use
+ <function class="GtkMisc">set_alignment()</function>. There is a
+ working example of this method on the
+ <link linkend="gtk.gtklabel.constructor">constructor</link> page.
+ </simpara>
<para>
<informalexample>
<programlisting role="php">
+$label->set_line_wrap(true);
$label->set_justify(GTK_JUSTIFY_FILL);
</programlisting>
</informalexample>