[chirp_devel] [PATCH] [ui] Change clipboard target to support cross-process copy/paste on Windows. #3693
Tom Hayward
Thu May 26 16:53:34 PDT 2016
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1464306780 25200
# Thu May 26 16:53:00 2016 -0700
# Node ID 9ba2bb06a2ff437d93581570c238a02485123fce
# Parent 77bd2ad5e4e37248f31d56a7aa122956848e7bb2
[ui] Change clipboard target to support cross-process copy/paste on Windows. #3693
Clipboard target was PRIMARY, the X clipboard. Changed to CLIPBOARD, the
default clipboard, for better Windows support including the ability
to copy/paste between multiple instances of Chirp.
http://intrepid.danplanet.com/pipermail/chirp_devel/2016-May/004018.html
diff -r 77bd2ad5e4e3 -r 9ba2bb06a2ff chirp/ui/memedit.py
--- a/chirp/ui/memedit.py Mon May 23 10:30:11 2016 -0400
+++ b/chirp/ui/memedit.py Thu May 26 16:53:00 2016 -0700
@@ -1421,7 +1421,7 @@
self._set_memory(iter, mem)
result = pickle.dumps((self._features, selection))
- clipboard = gtk.Clipboard(selection="PRIMARY")
+ clipboard = gtk.Clipboard(selection="CLIPBOARD")
clipboard.set_text(result)
return cut # Only changed if we did a cut
@@ -1515,7 +1515,7 @@
self.rthread.submit(job)
def paste_selection(self):
- clipboard = gtk.Clipboard(selection="PRIMARY")
+ clipboard = gtk.Clipboard(selection="CLIPBOARD")
clipboard.request_text(self._paste_selection)
def select_all(self):
More information about the chirp_devel
mailing list