[orca/new-settings] Setted self.profiles at first start
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Setted self.profiles at first start
- Date: Fri, 29 Oct 2010 17:47:51 +0000 (UTC)
commit d8c09694574a4efa24df626e41dd5ae0523bcdfd
Author: Juanje Ojeda <jojeda emergya es>
Date: Fri Oct 29 19:43:33 2010 +0200
Setted self.profiles at first start
src/orca/backends/yaml_backend.py | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index a510355..fb85ba9 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -46,16 +46,18 @@ class Backend:
def saveDefaultSettings(self, general, pronunciations, keybindings):
""" Save default settings for all the properties from
orca.settings. """
+ defaultProfiles = {'default': { 'profile': ['Default', 'default'],
+ 'pronunciations': {},
+ 'keybindings': {}
+ }
+ }
prefs = {'general': general,
- 'profiles': { 'default': { 'profile': ['Default', 'default'],
- 'pronunciations': {},
- 'keybindings': {}
- }
- },
+ 'profiles': defaultProfiles,
'pronunciations': pronunciations,
'keybindings': keybindings}
self.general = general
+ self.profiles = defaultProfiles
self.pronunciation = pronunciations
self.keybindings = keybindings
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]