[orca/orca-gnome3: 17/23] Fixing gsettings_backend store problem detected



commit 9e83872759dd4f0ee284930983e3bd5e0fb38871
Author: Javier Hernández Antúnez <jhernandez emergya es>
Date:   Tue Mar 8 18:48:20 2011 +0100

    Fixing gsettings_backend store problem detected

 src/orca/backends/gsettings_backend.py |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/backends/gsettings_backend.py b/src/orca/backends/gsettings_backend.py
index 848ec74..ac0ec0c 100644
--- a/src/orca/backends/gsettings_backend.py
+++ b/src/orca/backends/gsettings_backend.py
@@ -91,7 +91,6 @@ class Backend:
         self._setPronunciationsDict(BASE_PATH, pronunciations)
         self._setKeybindingsDict(BASE_PATH, keybindings)
 
-
     def saveProfileSettings(self, profile, general,
                                   pronunciations, keybindings):
         """ Save minimal subset defined in the profile against current 
@@ -117,7 +116,6 @@ class Backend:
             settingsDict.pop(key)
 
         self.general = settingsDict.copy()
-        
 
         self.pronunciations = self._getPronunciationsDict(BASE_PATH)
         self.keybindings = self._getKeybindingsDict(BASE_PATH)
@@ -213,10 +211,10 @@ class Backend:
         g_settings = GSettings(schema=schema, path=path)
 
         for key in g_settings.list_keys():
-            if key not in dict_in.keys(): continue
+            if self.__dashToCamel(key) not in dict_in.keys(): continue
             self.__setKeyValue(schema, path, \
-                    self.__camelToDash(key), \
-                    dict_in[key])
+                    key, \
+                    dict_in[self.__dashToCamel(key)])
 
 
     def __getKeyValue(self, schema, path, key):



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