[orca] Don't generate role names for ROLE_EXTENDED objects



commit bd26fd73beeac8e54214668dd88cefb44378c7cf
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Jan 31 11:24:33 2014 -0500

    Don't generate role names for ROLE_EXTENDED objects

 src/orca/braille_generator.py |    4 +++-
 src/orca/speech_generator.py  |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/braille_generator.py b/src/orca/braille_generator.py
index b5380ef..4636326 100644
--- a/src/orca/braille_generator.py
+++ b/src/orca/braille_generator.py
@@ -134,7 +134,9 @@ class BrailleGenerator(generator.Generator):
         role = args.get('role', obj.getRole())
         verbosityLevel = _settingsManager.getSetting('brailleVerbosityLevel')
 
-        doNotPresent = [pyatspi.ROLE_UNKNOWN]
+        doNotPresent = [pyatspi.ROLE_UNKNOWN,
+                        pyatspi.ROLE_FILLER,
+                        pyatspi.ROLE_EXTENDED]
 
         # egg-list-box, e.g. privacy panel in gnome-control-center
         if obj.parent and obj.parent.getRole() == pyatspi.ROLE_LIST_BOX:
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 81fe299..aefb853 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -257,7 +257,9 @@ class SpeechGenerator(generator.Generator):
         acss = self.voice(SYSTEM)
         role = args.get('role', obj.getRole())
 
-        doNotPresent = [pyatspi.ROLE_UNKNOWN, pyatspi.ROLE_FILLER]
+        doNotPresent = [pyatspi.ROLE_UNKNOWN,
+                        pyatspi.ROLE_FILLER,
+                        pyatspi.ROLE_EXTENDED]
 
         # egg-list-box, e.g. privacy panel in gnome-control-center
         if obj.parent and obj.parent.getRole() == pyatspi.ROLE_LIST_BOX:


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