diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-07-12 00:36:35 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-07-12 00:36:35 +0000 |
commit | 29abd7c87c6a9f7e0798d7b6cbde1646fe310d49 (patch) | |
tree | 2f2c35775ca050a2568515f0d209a1bb97a5a2cc /docs | |
parent | 2cc1247433a1e4e480a09b31f7875ba253601ae8 (diff) | |
download | gdk-pixbuf-29abd7c87c6a9f7e0798d7b6cbde1646fe310d49.tar.gz |
Improve docs
svn path=/trunk/; revision=20819
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/ChangeLog | 7 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtklabel.sgml | 13 |
2 files changed, 17 insertions, 3 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index ecad4c10c..e89fa1725 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,10 @@ +2008-07-11 Matthias Clasen <mclasen@redhat.com> + + Bug 537430 – label pango attributes & i18n + + * gtk/tmpl/gtklabel.sgml: Improve docs for Pango attributes in + builder xml. Pointed out by Christian Persch + 2008-07-10 Stefan Kost <ensonic@users.sf.net> Bug 540967 – docs build slowly because of entities diff --git a/docs/reference/gtk/tmpl/gtklabel.sgml b/docs/reference/gtk/tmpl/gtklabel.sgml index 25e10b128..ad9179b89 100644 --- a/docs/reference/gtk/tmpl/gtklabel.sgml +++ b/docs/reference/gtk/tmpl/gtklabel.sgml @@ -17,18 +17,25 @@ implies, most labels are used to label another widget such as a The GtkLabel implementation of the GtkBuildable interface supports a custom <attributes> element, which supports any number of <attribute> elements. the <attribute> element has attributes named name, value, -start and end and allows you to specify #PangoAttributs for this label. +start and end and allows you to specify #PangoAttribute values for this label. </para> <example> -<title>A UI definition fragment specifying pango attributes</title> +<title>A UI definition fragment specifying Pango attributes</title> <programlisting><![CDATA[ <object class="GtkLabel"> <attributes> - <attribute name=\"weight\" value=\"PANGO_WEIGHT_BOLD\"/> + <attribute name="weight" value="PANGO_WEIGHT_BOLD"/> + <attribute name="background" value="red" start="5" end="10"/>" </attributes> </object> ]]></programlisting> </example> +<para> +The start and end attributes specify the range of characters to which the +Pango attribute applies. If start and end are not specified, the attribute is +applied to the whole text. Note that specifying ranges does not make much +sense with translatable attributes. Use markup embedded in the translatable +content instead. </refsect2> |