[orca/gnome-3-30] Fix presentation of nameless menu items in certain gnome-shell extesions



commit c149a4b5ac2b581399c8df72172f7c961c909826
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Oct 19 10:42:17 2018 +0200

    Fix presentation of nameless menu items in certain gnome-shell extesions
    
    We need to search for unrelated labels for menu items in gnome-shell
    extensions because they don't have names like normal menu items.

 src/orca/scripts/apps/gnome-shell/script_utilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/apps/gnome-shell/script_utilities.py 
b/src/orca/scripts/apps/gnome-shell/script_utilities.py
index c36fee7c5..6d28715c3 100644
--- a/src/orca/scripts/apps/gnome-shell/script_utilities.py
+++ b/src/orca/scripts/apps/gnome-shell/script_utilities.py
@@ -96,7 +96,7 @@ class Utilities(script_utilities.Utilities):
         if not root:
             return []
 
-        roles = [pyatspi.ROLE_DIALOG, pyatspi.ROLE_NOTIFICATION]
+        roles = [pyatspi.ROLE_DIALOG, pyatspi.ROLE_NOTIFICATION, pyatspi.ROLE_MENU_ITEM]
 
         hasRole = lambda x: x and x.getRole() in roles
         if not hasRole(root) and pyatspi.findAncestor(root, hasRole) is None:


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