forked from AuroraMiddleware/gtk
GtkAboutDialog: escape mail addresses
This got lost when converting to the ::activate-link signal.
This commit is contained in:
parent
8578ff4b38
commit
26c93dc04b
@ -2102,9 +2102,17 @@ text_view_new (GtkAboutDialog *about,
|
|||||||
"underline", PANGO_UNDERLINE_SINGLE,
|
"underline", PANGO_UNDERLINE_SINGLE,
|
||||||
NULL);
|
NULL);
|
||||||
if (strcmp (link_type, "email") == 0)
|
if (strcmp (link_type, "email") == 0)
|
||||||
uri = g_strconcat ("mailto:", link, NULL);
|
{
|
||||||
|
gchar *escaped;
|
||||||
|
|
||||||
|
escaped = g_uri_escape_string (link, NULL, FALSE);
|
||||||
|
uri = g_strconcat ("mailto:", escaped, NULL);
|
||||||
|
g_free (escaped);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
uri = g_strdup (link);
|
uri = g_strdup (link);
|
||||||
|
}
|
||||||
g_object_set_data_full (G_OBJECT (tag), I_("uri"), uri, g_free);
|
g_object_set_data_full (G_OBJECT (tag), I_("uri"), uri, g_free);
|
||||||
gtk_text_buffer_insert_with_tags (buffer, &end, link, -1, tag, NULL);
|
gtk_text_buffer_insert_with_tags (buffer, &end, link, -1, tag, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user