[GnomeMeeting-devel-list] [PATCH] "copy url" in text chat



Hi,

the current (version 1.00) behaviour is that copy makes it possible to
paste with the middle mouse button. Damien just complained he would like
to be able to use the "paste" icons in gtk apps too.

This little patch makes both uses possible.

Snark
diff -ur gnomemeeting-cvs-20040224.CVS/src/chat_window.cpp gnomemeeting-cvs-20040224.CVS.patched/src/chat_window.cpp
--- gnomemeeting-cvs-20040224.CVS/src/chat_window.cpp	2004-02-08 15:14:14.000000000 +0100
+++ gnomemeeting-cvs-20040224.CVS.patched/src/chat_window.cpp	2004-03-02 20:44:54.000000000 +0100
@@ -78,9 +78,12 @@
 static void
 copy_uri_callback (const gchar *uri)
 {
-  if (uri)
+  if (uri) {
     gtk_clipboard_set_text (gtk_clipboard_get (GDK_SELECTION_PRIMARY),
 			    uri, -1);
+    gtk_clipboard_set_text (gtk_clipboard_get (GDK_SELECTION_CLIPBOARD),
+			    uri, -1);
+  }
 }
 
 


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