cvs: php-gtk /docs/en/classes gtklabel.xml /generator gtk.defs
| From: | Andrei Zmievski | Date: | Tue, 24 Apr 2001 20:04:51 +0000 |
| Subject: | cvs: php-gtk /docs/en/classes gtklabel.xml /generator gtk.defs | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1506@lists.php.net to get a copy of this message | ||
andrei Tue Apr 24 13:04:51 2001 EDT
Modified files:
/php-gtk/docs/en/classes gtklabel.xml
/php-gtk/generator gtk.defs
Log:
* Fixed some GtkLabel docs.
* Allow no parameters for GtkLabel constructor and set_pattern() method.
Index: php-gtk/docs/en/classes/gtklabel.xml
diff -u php-gtk/docs/en/classes/gtklabel.xml:1.8 php-gtk/docs/en/classes/gtklabel.xml:1.9
--- php-gtk/docs/en/classes/gtklabel.xml:1.8 Tue Apr 24 04:34:25 2001
+++ php-gtk/docs/en/classes/gtklabel.xml Tue Apr 24 13:04:50 2001
@@ -2,17 +2,18 @@
<classmeta>
<classtitle>GtkLabel</classtitle>
<classparent>GtkMisc</classparent>
- <shortdesc>Label class object</shortdesc>
+ <shortdesc>A widget that displays a small amount of text.</shortdesc>
<desc>
<para>
- GtkLabel is a widget for displaying a small amount of text. If you need
- to display a great deal of text, use GtkText instead.
+ A very common use of GtkLabel is displaying some text that describes an
+ adjacent widget or makes some comment about its use. If you need to
+ display a great deal of text, use GtkText instead.
</para>
- <para>
- Labels do not emit signals. If you want to catch signals (e.g. from a
- button click) you will need to put it in a
- <classname>GtkEventBox</classname>.
- </para>
+ <para>
+ Note that labels do not emit signals. If you want to catch signals (e.g.
+ from a button click) you will need to put it in a
+ <classname>GtkEventBox</classname>.
+ </para>
</desc>
</classmeta>
@@ -20,21 +21,22 @@
<funcsynopsis>
<funcprototype>
<funcdef>
- Object <function>GtkLabel</function>
+ <function>GtkLabel</function>
</funcdef>
- <paramdef>string <parameter>labeltext</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
+ <paramdef>string
<parameter><optional>label_text</optional></parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
<shortdesc>
- Constructs a GtkLabel.
+ Creates a new label with the given text inside it. If no text is specified,
+ an empty label is created.
</shortdesc>
- <desc>
- <para>
- The syntax to create a new GtkLabel widget is
- <programlisting>$label = &new GtkLabel("Initial or static label
text");</programlisting>
- </para>
- </desc>
-</constructor>
+ <desc>
+ <para>
+ The syntax to create a new GtkLabel widget is
+ <programlisting>$label = &new GtkLabel("Initial or static label
text");</programlisting>
+ </para>
+ </desc>
+ </constructor>
<methods>
@@ -44,17 +46,14 @@
<funcdef>
void <function>set_text</function>
</funcdef>
- <paramdef>string <parameter>labeltext</parameter></paramdef>
+ <paramdef>string <parameter>label_text</parameter></paramdef>
</funcprototype>
</funcsynopsis>
- <shortdesc>
- Writes text to the label.
- </shortdesc>
<desc>
<para>
- <function>set_text</function> is not needed when first creating a label;
- this method is only useful for replacing the text of the label later,
- eg. to report a server connection status or to reflect user input.
+ Sets the text for the label widget. Previous text in the label is not kept.
+ Note that the existing underlines are not overwritten, use
+ <method>set_pattern<method> with no parameters to erase the underlines.
</para>
<para>
<programlisting>$label->set_text("Whatever you wish to pass");
Index: php-gtk/generator/gtk.defs
diff -u php-gtk/generator/gtk.defs:1.19 php-gtk/generator/gtk.defs:1.20
--- php-gtk/generator/gtk.defs:1.19 Tue Apr 24 06:43:48 2001
+++ php-gtk/generator/gtk.defs Tue Apr 24 13:04:50 2001
@@ -4797,7 +4797,7 @@
(c-name gtk_label_new)
(is-constructor-of GtkLabel)
(return-type GtkWidget*)
- (parameter (type-and-name const-gchar* str))
+ (parameter (type-and-name const-gchar* str) (default "NULL"))
)
(method set_text
@@ -4818,7 +4818,7 @@
(of-object Label (Gtk))
(c-name gtk_label_set_pattern)
(return-type none)
- (parameter (type-and-name const-gchar* pattern))
+ (parameter (type-and-name const-gchar* pattern) (default "NULL"))
)
(method set_line_wrap