Prepend 'mailto' to email links in the About dialogue
Some email clients require this to open email links.
This commit is contained in:
parent
6ee9436db4
commit
39f095a0cf
1 changed files with 7 additions and 1 deletions
|
@ -3966,7 +3966,13 @@ _action_about_activate_email (GtkAboutDialog* about,
|
||||||
const gchar* uri,
|
const gchar* uri,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
sokoke_show_uri (NULL, uri, GDK_CURRENT_TIME, NULL);
|
/* Some email clients need the 'mailto' to function properly */
|
||||||
|
gchar* newuri = NULL;
|
||||||
|
if (!g_str_has_prefix (uri, "mailto:"))
|
||||||
|
newuri = g_strconcat ("mailto:", uri, NULL);
|
||||||
|
|
||||||
|
sokoke_show_uri (NULL, newuri ? newuri : uri, GDK_CURRENT_TIME, NULL);
|
||||||
|
g_free (newuri);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue