Show 'Send a message to <mail address>' when hovering email links
This commit is contained in:
parent
037be4dda4
commit
1535bc8970
1 changed files with 8 additions and 1 deletions
|
@ -1077,6 +1077,13 @@ webkit_web_view_hovering_over_link_cb (WebKitWebView* web_view,
|
||||||
MidoriView* view)
|
MidoriView* view)
|
||||||
{
|
{
|
||||||
katze_assign (view->link_uri, g_strdup (link_uri));
|
katze_assign (view->link_uri, g_strdup (link_uri));
|
||||||
|
if (link_uri && g_str_has_prefix (link_uri, "mailto:"))
|
||||||
|
{
|
||||||
|
gchar* text = g_strdup_printf (_("Send a message to %s"), &link_uri[7]);
|
||||||
|
g_object_set (G_OBJECT (view), "statusbar-text", text, NULL);
|
||||||
|
g_free (text);
|
||||||
|
}
|
||||||
|
else
|
||||||
g_object_set (G_OBJECT (view), "statusbar-text", link_uri, NULL);
|
g_object_set (G_OBJECT (view), "statusbar-text", link_uri, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue