[orca] Let Gtk calculate the length of strings when adding text to the clipboard
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Let Gtk calculate the length of strings when adding text to the clipboard
- Date: Wed, 17 Feb 2016 14:37:26 +0000 (UTC)
commit b933fc103d9abfb27426adfffd51cf19a769e03c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Feb 17 09:36:05 2016 -0500
Let Gtk calculate the length of strings when adding text to the clipboard
src/orca/script_utilities.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 2d553b4..21ddc83 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -3582,7 +3582,7 @@ class Utilities:
def setClipboardText(self, text):
clipboard = Gtk.Clipboard.get(Gdk.Atom.intern("CLIPBOARD", False))
- clipboard.set_text(text, len(text))
+ clipboard.set_text(text, -1)
def appendTextToClipboard(self, text):
clipboard = Gtk.Clipboard.get(Gdk.Atom.intern("CLIPBOARD", False))
@@ -3591,7 +3591,7 @@ class Utilities:
def _appendTextToClipboardCallback(self, clipboard, text, newText):
text = text.rstrip("\n")
text = "%s\n%s" % (text, newText)
- clipboard.set_text(text, len(text))
+ clipboard.set_text(text, -1)
def lastInputEventWasCommand(self):
keyString, mods = self.lastKeyAndModifiers()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]