Fixed GtkLabel documentation on links

An escaped '<' wasn't complete, the 'lt' part was missing.
This commit is contained in:
Luis Menina
2013-12-21 15:54:29 +01:00
parent 090159cec9
commit 4a61ca28b1

View File

@ -172,7 +172,7 @@ to regular Pango markup. The markup for links is borrowed from HTML, using the
way they appear in web browsers, with colored, underlined text. The title
attribute is displayed as a tooltip on the link. An example looks like this:
<informalexample><programlisting>
gtk_label_set_markup (label, "Go to the &lt;a href=\"http://www.gtk.org\" title=\"&amp;lt;i&amp;gt;Our&amp;/i&amp;gt; website\"&gt;GTK+ website&lt;/a&gt; for more...");
gtk_label_set_markup (label, "Go to the &lt;a href=\"http://www.gtk.org\" title=\"&amp;lt;i&amp;gt;Our&amp;lt;/i&amp;gt; website\"&gt;GTK+ website&lt;/a&gt; for more...");
</programlisting></informalexample>
It is possible to implement custom handling for links and their tooltips with
the #GtkLabel::activate-link signal and the gtk_label_get_current_uri() function.