mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
parent
f64ef8ea51
commit
a746df7d37
@ -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
|
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:
|
attribute is displayed as a tooltip on the link. An example looks like this:
|
||||||
<informalexample><programlisting>
|
<informalexample><programlisting>
|
||||||
gtk_label_set_markup (label, "Go to the <a href=\"http://www.gtk.org\" title=\"&lt;i&gt;Our&/i&gt; website\">GTK+ website</a> for more...");
|
gtk_label_set_markup (label, "Go to the <a href=\"http://www.gtk.org\" title=\"&lt;i&gt;Our&/i&gt; website\">GTK+ website</a> for more...");
|
||||||
</programlisting></informalexample>
|
</programlisting></informalexample>
|
||||||
It is possible to implement custom handling for links and their tooltips with
|
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.
|
the #GtkLabel::activate-link signal and the gtk_label_get_current_uri() function.
|
||||||
|
Loading…
Reference in New Issue
Block a user