[pyatspi2] notifyReadPosition -> notifyReadingPosition



commit a0a3f57e2b98b29fc86b2d72dde12c4cce120e0a
Author: Mike Gorse <mgorse alum wpi edu>
Date:   Sun May 5 16:24:04 2019 -0500

    notifyReadPosition -> notifyReadingPosition
    
    This seems to make more grammatical sense. Corresponds with the last
    commit to at-spi2-core.
    https://gitlab.gnome.org/GNOME/at-spi2-core/issues/10

 pyatspi/text.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/text.py b/pyatspi/text.py
index 665cf82..4fc9aa0 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 notifyReadPosition(self, offset):
+        def notifyReadingPosition(self, offset):
                 """
                 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_read_position(self.obj, offset)
+                return Atspi.Text.notify_reading_position(self.obj, offset)
 
 def rangeToList(r):
         return (r.start_offset, r.end_offset)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]