[orca/gnome-3-16] Do not speak table details when verbosity level is brief
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-16] Do not speak table details when verbosity level is brief
- Date: Tue, 10 Mar 2015 16:36:17 +0000 (UTC)
commit 7cdd2cbffaf3cc0c33c78726fe404bf020c0d942
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Mar 10 12:35:12 2015 -0400
Do not speak table details when verbosity level is brief
src/orca/speech_generator.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index ee16de0..cedecf9 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -265,6 +265,20 @@ class SpeechGenerator(generator.Generator):
result.extend(acss)
return result
+ def _generateTable(self, obj, **args):
+ if _settingsManager.getSetting('onlySpeakDisplayedText'):
+ return []
+
+ if _settingsManager.getSetting('speechVerbosityLevel') == \
+ settings.VERBOSITY_LEVEL_BRIEF:
+ return []
+
+ acss = self.voice(SYSTEM)
+ result = generator.Generator._generateTable(self, obj, **args)
+ if result:
+ result.extend(acss)
+ return result
+
def _generateTextRole(self, obj, **args):
"""A convenience method to prevent the pyatspi.ROLE_PARAGRAPH role
from being spoken. In the case of a pyatspi.ROLE_PARAGRAPH
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]