[orca] Explicitly update the active script's voices in profile-based language switching



commit f1cd74e7ef79c20d6b13e51a4fcd649157c54334
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Feb 24 19:43:26 2013 -0500

    Explicitly update the active script's voices in profile-based language switching

 src/orca/scripts/default.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index e0b00f1..8f7f4b2 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2080,6 +2080,13 @@ class Script(script.Script):
             name, profileID = profiles[0]
 
         _settingsManager.setProfile(profileID, updateLocale=True)
+
+        # TODO: The right fix is to go find each and every case where we use
+        # self.voices directly and instead get the voices from the Settings
+        # Manager. But that's too big a change too close to code freeze. So
+        # for now we'll hack.
+        self.voices = _settingsManager.getSetting('voices')
+
         self.presentMessage(messages.PROFILE_CHANGED % name, name)
         return True
 


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