[orca] Remove the Nautilus script's handling for a bug which no longer exists



commit d6b0c3910f298872b4c9edccb2a8f57a8cfd03ba
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Nov 2 15:44:06 2013 -0400

    Remove the Nautilus script's handling for a bug which no longer exists

 src/orca/scripts/apps/nautilus/script.py |   32 ------------------------------
 1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/src/orca/scripts/apps/nautilus/script.py b/src/orca/scripts/apps/nautilus/script.py
index 6f5d7ae..e32f6fb 100644
--- a/src/orca/scripts/apps/nautilus/script.py
+++ b/src/orca/scripts/apps/nautilus/script.py
@@ -216,38 +216,6 @@ class Script(default.Script):
         #
         default.Script.onNameChanged(self, event)
 
-    def onStateChanged(self, event):
-        """Called whenever an object's state changes.
-
-        Arguments:
-        - event: the Event
-        """
-
-        # If we've received an "object:state-changed:showing" event for the
-        # poorly named gtk-edit toggle button, then just return. We will have
-        # spoken the information for this component with the previously
-        # received "object:state-changed:focused" event. For all other events,
-        # just let the parent class handle it. See bug #371637 for more
-        # details.
-        #
-        if event.type.startswith("object:state-changed:showing"):
-            rolesList = [pyatspi.ROLE_LABEL, \
-                         pyatspi.ROLE_PANEL, \
-                         pyatspi.ROLE_FILLER, \
-                         pyatspi.ROLE_FILLER, \
-                         pyatspi.ROLE_FILLER, \
-                         pyatspi.ROLE_PANEL, \
-                         pyatspi.ROLE_TOOL_BAR, \
-                         pyatspi.ROLE_PANEL, \
-                         pyatspi.ROLE_FRAME, \
-                         pyatspi.ROLE_APPLICATION]
-            if self.utilities.hasMatchingHierarchy(event.source, rolesList):
-                debug.println(self.debugLevel, "nautilus.onStateChanged - " \
-                              + "Location: label.")
-                return
-
-        default.Script.onStateChanged(self, event)
-
     def onSelectionChanged(self, event):
         """Called when an object's selection changes.
 


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