[orca/gnome-3-16] Enable toggling of speech via keybinding when it's not silenced, but disabled
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-16] Enable toggling of speech via keybinding when it's not silenced, but disabled
- Date: Sun, 28 Jun 2015 15:54:46 +0000 (UTC)
commit dc70938e3d63866c0e66bc2934a65169dffb613f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Jun 27 15:20:42 2015 -0400
Enable toggling of speech via keybinding when it's not silenced, but disabled
src/orca/scripts/default.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 8964121..cf82598 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -1876,6 +1876,10 @@ class Script(script.Script):
if _settingsManager.getSetting('silenceSpeech'):
_settingsManager.setSetting('silenceSpeech', False)
self.presentMessage(messages.SPEECH_ENABLED)
+ elif not _settingsManager.getSetting('enableSpeech'):
+ _settingsManager.setSetting('enableSpeech', True)
+ speech.init()
+ self.presentMessage(messages.SPEECH_ENABLED)
else:
self.presentMessage(messages.SPEECH_DISABLED)
_settingsManager.setSetting('silenceSpeech', True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]