# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1464290018 25200 # Thu May 26 12:13:38 2016 -0700 # Node ID 5e201db884fbc23ea7884f312b5432c419002370 # Parent 77bd2ad5e4e37248f31d56a7aa122956848e7bb2 [ui] Change clipboard target to support cross-process copy/paste on Windows.
Clipboard target was PRIMARY, the X clipboard. Changed to CLIPBOARD thinking it might work better on Windows. Untested.
diff -r 77bd2ad5e4e3 -r 5e201db884fb 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 12:13:38 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):