From: Tomasz Szatkowski Date: Sat, 26 Feb 2011 15:05:39 +0000 (+0100) Subject: Copy email addresses without mailto: prefix X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddd660b45ac3f73a396431066783dea83bf89568;p=midori Copy email addresses without mailto: prefix Fixes: https://bugs.launchpad.net/midori/+bug/358650 --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 5669d788..5b5c1781 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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