[orca] Fix for bug 600204 - Mouse Review Errors



commit ff2a6779b0c04cd8f9300e526ae6e6a1bad91b76
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Jan 9 07:23:33 2013 -0500

    Fix for bug 600204 - Mouse Review Errors

 src/orca/script_utilities.py |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 38670a3..7fba7dd 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -377,12 +377,6 @@ class Utilities:
 
         container = parent
         while True:
-            if container.getRole() == pyatspi.ROLE_PAGE_TAB_LIST:
-                try:
-                    si = container.querySelection()
-                    container = si.getSelectedChild(0)[0]
-                except NotImplementedError:
-                    pass
             try:
                 ci = container.queryComponent()
             except:
@@ -392,6 +386,9 @@ class Utilities:
             container =  ci.getAccessibleAtPoint(x, y, pyatspi.DESKTOP_COORDS)
             if not container or container.queryComponent() == ci:
                 break
+            if inner_container.getRole() == pyatspi.ROLE_PAGE_TAB_LIST:
+                return container
+
         if inner_container == parent:
             return None
         else:



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