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,6 +1981,9 @@ static void
midori_web_view_menu_link_copy_activate_cb (GtkWidget* widget, midori_web_view_menu_link_copy_activate_cb (GtkWidget* widget,
MidoriView* view) MidoriView* view)
{ {
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); midori_web_view_set_clipboard (widget, view->link_uri);
} }