[orca] Work around Unity Panel Service exposing labels with index in parent of -1



commit 0bee366a56316495f52bfd1eaf4c5af77e65be36
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Apr 25 09:35:42 2016 -0400

    Work around Unity Panel Service exposing labels with index in parent of -1
    
    Unity Panel Service menubar items are actually labels which claim focus.
    These have an index in parent of -1, which is indicative of an object not
    fully created or about to be destroyed and/or a broken accessibility tree.
    For now, we'll hack around this.

 src/orca/script_utilities.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index d145251..82f261e 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -3518,6 +3518,7 @@ class Utilities:
         topLevelRoles = [pyatspi.ROLE_APPLICATION,
                          pyatspi.ROLE_ALERT,
                          pyatspi.ROLE_DIALOG,
+                         pyatspi.ROLE_LABEL, # For Unity Panel Service bug
                          pyatspi.ROLE_PAGE, # For Evince bug
                          pyatspi.ROLE_WINDOW,
                          pyatspi.ROLE_FRAME]


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