Open GoogleCodeExporter opened 8 years ago
OK, I made a little patch to solve this issue.
$ diff -u interface.py interface.py~
--- interface.py 2012-07-15 20:32:36.232074570 +0200
+++ interface.py~ 2012-07-15 20:36:37.195672244 +0200
@@ -521,7 +521,7 @@
self.sem.release()
else:
Gdk.threads_enter()
- self.selection.set_text(string.encode("utf-8"), -1)
+ self.selection.set_text(string.encode("utf-8"))
Gdk.threads_leave()
def __fillClipboard(self, string):
@@ -534,7 +534,7 @@
text = self.clipBoard.wait_for_text()
self.__savedClipboard = ''
if text is not None: self.__savedClipboard = text
- self.clipBoard.set_text(string.encode("utf-8"), -1)
+ self.clipBoard.set_text(string.encode("utf-8"))
Gdk.threads_leave()
def begin_send(self):
Greetings,
Rafael Muñoz Cárdenas.
Original comment by byme...@gmail.com
on 15 Jul 2012 at 6:47
I just ran this and found many more references to set_text() that should
probably also have the "-1" argument added to them:
grep -rIF '.set_text(' /usr/lib/python2.7/dist-packages/autokey
Original comment by paul...@gmail.com
on 5 Dec 2012 at 10:51
Original issue reported on code.google.com by
byme...@gmail.com
on 15 Jul 2012 at 6:13