Copy email addresses without mailto: prefix

Fixes: https://bugs.launchpad.net/midori/+bug/358650
This commit is contained in:
Tomasz Szatkowski 2011-02-26 16:05:39 +01:00 committed by Christian Dywan
parent 3eba817d50
commit ddd660b45a

View file

@ -1981,7 +1981,10 @@ static void
midori_web_view_menu_link_copy_activate_cb (GtkWidget* widget,
MidoriView* view)
{
midori_web_view_set_clipboard (widget, view->link_uri);
if (g_str_has_prefix (view->link_uri, "mailto:"))
midori_web_view_set_clipboard (widget, view->link_uri + 7);
else
midori_web_view_set_clipboard (widget, view->link_uri);
}
static void