aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-04-22 20:59:20 +0800
committerMilan Crha <mcrha@redhat.com>2014-04-22 20:59:20 +0800
commitf835576d3584d90bbc029c5be38d45228bcbb1b4 (patch)
treedea404b7495d2ecbb341976b1dad1797bc343917 /e-util
parente843694d6e866619b15617b3036fe3158734d133 (diff)
downloadgsoc2013-evolution-f835576d3584d90bbc029c5be38d45228bcbb1b4.tar
gsoc2013-evolution-f835576d3584d90bbc029c5be38d45228bcbb1b4.tar.gz
gsoc2013-evolution-f835576d3584d90bbc029c5be38d45228bcbb1b4.tar.bz2
gsoc2013-evolution-f835576d3584d90bbc029c5be38d45228bcbb1b4.tar.lz
gsoc2013-evolution-f835576d3584d90bbc029c5be38d45228bcbb1b4.tar.xz
gsoc2013-evolution-f835576d3584d90bbc029c5be38d45228bcbb1b4.tar.zst
gsoc2013-evolution-f835576d3584d90bbc029c5be38d45228bcbb1b4.zip
Make 'Copy Link Location' copy into both primary and selection clipboards
It used to copy the link into both buffers, same as the 'Copy Email Address" does, but it seems, after a move to WebKit based message preview, this changed and the link had been copied only to the selection clipboard. Make the function consistent and copy the link into to both clipboards.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-web-view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 511f17e743..5750ad9628 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -253,10 +253,14 @@ action_uri_copy_cb (GtkAction *action,
GtkClipboard *clipboard;
const gchar *uri;
- clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
uri = e_web_view_get_selected_uri (web_view);
g_return_if_fail (uri != NULL);
+ clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY);
+ gtk_clipboard_set_text (clipboard, uri, -1);
+ gtk_clipboard_store (clipboard);
+
+ clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
gtk_clipboard_set_text (clipboard, uri, -1);
gtk_clipboard_store (clipboard);
}