[orca] Remove obsolete onTextSelectionChanged() method from Evince script



commit 0d493162202d5b096424c0e1ac068bab8ffefefe
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Jan 30 11:04:12 2017 +0100

    Remove obsolete onTextSelectionChanged() method from Evince script
    
    This method was left over from the days where Evince exposed a single
    document object rather than individual pages.

 src/orca/scripts/apps/evince/script.py |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/src/orca/scripts/apps/evince/script.py b/src/orca/scripts/apps/evince/script.py
index 2b03d4c..9030247 100644
--- a/src/orca/scripts/apps/evince/script.py
+++ b/src/orca/scripts/apps/evince/script.py
@@ -118,27 +118,3 @@ class Script(gtk.Script):
             orca.setLocusOfFocus(event, event.source, False)
 
         gtk.Script.onCaretMoved(self, event)
-
-    def onTextSelectionChanged(self, event):
-        """Callback for object:text-selection-changed accessibility events."""
-
-        # Two functionally different objects (pages of a PDF) are currently
-        # contained in a single accessible object whose contents change. As
-        # a result, when a new text selection spans two pages, we have stored
-        # data for our previous location that makes no sense because that
-        # location no longer exists.
-
-        obj = event.source
-        oldStart, oldEnd, oldString = self.utilities.getCachedTextSelection(obj)
-
-        crossedPages = False
-        keyString, mods = self.utilities.lastKeyAndModifiers()
-        if keyString in ["Down", "Page_Down", "Right", "End"]:
-            crossedPages = oldStart > obj.queryText().caretOffset
-        elif keyString in ["Up", "Page_Up", "Left", "Home"]:
-            crossedPages = oldEnd < obj.queryText().caretOffset
-
-        if crossedPages:
-            self.pointOfReference['textSelections'] = {}
-
-        gtk.Script.onTextSelectionChanged(self, event)


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