[orca/gnome-3-20] Check setting before generating spoken indentation information
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-20] Check setting before generating spoken indentation information
- Date: Wed, 4 May 2016 18:58:00 +0000 (UTC)
commit 860de0ad34b7dff3776cb60cbe09c14b306b5616
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed May 4 14:55:36 2016 -0400
Check setting before generating spoken indentation information
src/orca/speech_generator.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 2d90542..0ef7bf8 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1221,6 +1221,9 @@ class SpeechGenerator(generator.Generator):
- obj: the text object.
"""
+ if not _settingsManager.getSetting('enableSpeechIndentation'):
+ return []
+
line, caretOffset, startOffset = self._script.getTextLineAtCaret(obj)
description = self._script.utilities.indentationDescription(line)
if not description:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]