[pyatspi2: 1/2] Text.notifyReadingPosition: let caller specify end offset
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2: 1/2] Text.notifyReadingPosition: let caller specify end offset
- Date: Mon, 20 May 2019 23:55:04 +0000 (UTC)
commit eb25aceb5a337eab4ebf67c41875a939cba167be
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Fri May 10 16:19:25 2019 +0200
Text.notifyReadingPosition: let caller specify end offset
since the screen reader may not be speaking until the end of the text.
pyatspi/text.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/text.py b/pyatspi/text.py
index 4fc9aa0..3f97d9d 100644
--- a/pyatspi/text.py
+++ b/pyatspi/text.py
@@ -606,14 +606,14 @@ class Text(interface):
"""
return Atspi.Text.scroll_substring_to_point(self.obj, startOffset, endOffset, coord_type, x,
y)
- def notifyReadingPosition(self, offset):
+ def notifyReadingPosition(self, startOffset, endOffset):
"""
Notifies interested listeners of the specific text that the
screen reader is currently reading. This allows a magnifier to
synchronize with the screen reader and highlight the text that
is currently being read.
"""
- return Atspi.Text.notify_reading_position(self.obj, offset)
+ return Atspi.Text.notify_reading_position(self.obj, startOffset, endOffset)
def rangeToList(r):
return (r.start_offset, r.end_offset)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]