[orca] Fix for the problem of voice settings not getting properly loaded or unloaded when the application s
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for the problem of voice settings not getting properly loaded or unloaded when the application s
- Date: Fri, 25 Mar 2011 13:45:23 +0000 (UTC)
commit 138a1a324313f660552ac2b0de248d82b4e936de
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Fri Mar 25 09:38:52 2011 -0400
Fix for the problem of voice settings not getting properly loaded or unloaded when the application script changes.
(No bug filed because bugzilla is down and it's code freeze day.)
src/orca/settings_manager.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index 6fec1f7..c9576b7 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -487,6 +487,7 @@ class SettingsManager(object):
"""
self._loadProfileSettings()
+ script.voices = self.getSetting('voices')
import orca
_scriptManager = getattr(orca, '_scriptManager')
@@ -521,6 +522,10 @@ class SettingsManager(object):
self._knownAppSettings[name] = module
reload(self._knownAppSettings[name])
+ appVoices = self.getSetting('voices')
+ for voiceType, voiceDef in appVoices.items():
+ script.voices[voiceType].update(voiceDef)
+
keybindings = getattr(module, 'overrideAppKeyBindings', None)
if keybindings:
script.overrideAppKeyBindings = keybindings
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]