[orca/new-settings] Let in the main root the default keybindings and pronunciations. Attach to the current profile the k
- From: Alejandro Leiva <aleiva src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Let in the main root the default keybindings and pronunciations. Attach to the current profile the k
- Date: Wed, 27 Oct 2010 11:28:10 +0000 (UTC)
commit 928d6dfbbb2b265c278b6458acfc8e4569e05ad5
Author: Alejandro Leiva <aleiva emergya es>
Date: Wed Oct 27 13:27:28 2010 +0200
Let in the main root the default keybindings and pronunciations. Attach to the current profile the keybindings and pronunciations information.
src/orca/backends/yaml_backend.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index 23185ef..6084dca 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -73,11 +73,16 @@ class Backend:
profilePrefs = {profile: general}
profilePrefs.update(currentProfilePrefs)
+ currentProfile = profilePrefs.get(profile)
+ currentProfile['pronunciations'] = pronunciations
+ currentProfile['keybindings'] = keybindings
+ profilePrefs.update({profile: currentProfile})
+
self._getSettings()
prefs = {'general': self.general,
'profiles': profilePrefs,
- 'pronunciations': pronunciations,
- 'keybindings': keybindings}
+ 'pronunciations': self.pronunciations,
+ 'keybindings': self.keybindings}
settingsFile = open(self.settingsFile, 'w')
dump(prefs, settingsFile)
settingsFile.close()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]