From ddd660b45ac3f73a396431066783dea83bf89568 Mon Sep 17 00:00:00 2001 From: Tomasz Szatkowski Date: Sat, 26 Feb 2011 16:05:39 +0100 Subject: [PATCH] Copy email addresses without mailto: prefix Fixes: https://bugs.launchpad.net/midori/+bug/358650 --- midori/midori-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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