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



commit 61191d74f5e1a05cdcdb2fa3deb5cb2ed8f6a448
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]