[evolution] Bug 604262 - "Copy Email Address" should also copy to primary clipboard



commit ef9b23ef998f8dd4e987c5e7443a36dd48e59b2e
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Jun 24 08:44:00 2010 -0400

    Bug 604262 - "Copy Email Address" should also copy to primary clipboard

 widgets/misc/e-web-view.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index 71eb1ac..d489a7a 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -307,6 +307,10 @@ action_mailto_copy_cb (GtkAction *action,
 	g_object_unref (inet_addr);
 	camel_url_free (curl);
 
+	clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY);
+	gtk_clipboard_set_text (clipboard, text, -1);
+	gtk_clipboard_store (clipboard);
+
 	clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
 	gtk_clipboard_set_text (clipboard, text, -1);
 	gtk_clipboard_store (clipboard);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]