[Xfce4-commits] <postler:master> Only strip query from copied email addresses

Christian Dywan noreply at xfce.org
Wed Jan 12 03:42:03 CET 2011


Updating branch refs/heads/master
         to 234691c6e4297d6e9a2b645ebe2a8e25a58be819 (commit)
       from 4bbd22184ed0a07ff3527efa773ff7e46efdebd9 (commit)

commit 234691c6e4297d6e9a2b645ebe2a8e25a58be819
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jan 12 00:13:04 2011 +0100

    Only strip query from copied email addresses

 postler/postler-content.vala |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index bbcc2d4..671cf42 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -217,8 +217,11 @@ public class Postler.Content : WebKit.WebView {
             menuitem = new Gtk.MenuItem.with_mnemonic (_("Copy _Address"));
             menuitem.activate.connect ((menuitem) => {
                 var clipboard = get_clipboard (Gdk.SELECTION_CLIPBOARD);
-                string address = result.link_uri.split ("?")[0];
-                clipboard.set_text (address, -1);
+                string address = result.link_uri;
+                if ("@" in address)
+                    clipboard.set_text (address.split ("?")[0], -1);
+                else
+                    clipboard.set_text (address, -1);
             });
             menuitem.show ();
             menu.append (menuitem);



More information about the Xfce4-commits mailing list