[orca/orca-xdesktop] Fix for bug 654796 - Orca is not respecting the 'only speak displayed text' setting with rolename pr



commit bc982cff860a82f4acfbeabf046869696fac7f88
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sun Jul 17 16:26:09 2011 -0400

    Fix for bug 654796 - Orca is not respecting the 'only speak displayed text' setting with rolename presentation in WebKitGtk content

 .../scripts/toolkits/WebKitGtk/speech_generator.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/speech_generator.py b/src/orca/scripts/toolkits/WebKitGtk/speech_generator.py
index 4ba39c9..5be3def 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/speech_generator.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/speech_generator.py
@@ -57,6 +57,9 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
         return voice
 
     def _generateRoleName(self, obj, **args):
+        if _settingsManager.getSetting('onlySpeakDisplayedText'):
+            return []
+
         result = []
         acss = self.voice(speech_generator.SYSTEM)
         role = args.get('role', obj.getRole())



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