[orca/new-settings] Changed the way to set the startingProfile key by	using the one from the backend. Added also a prope
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [orca/new-settings] Changed the way to set the startingProfile key by	using the one from the backend. Added also a prope
- Date: Mon,  1 Nov 2010 17:39:57 +0000 (UTC)
commit ec964c97e346d6a16eaabaa449832512759fbe97
Author: Juanje Ojeda <jojeda emergya es>
Date:   Mon Nov 1 18:27:42 2010 +0100
    Changed the way to set the startingProfile key by using the one from the backend. Added also a proper failback profile value.
 src/orca/settings_manager.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index f5eaa03..b33c670 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -244,12 +244,10 @@ class SettingsManager():
         except:
             return False
 
-    def setStartingProfile(self, profile='default'):
-        self.defaultGeneral['startingProfile'] = profile
-        self._backend.saveDefaultSettings(self.defaultGeneral,
-                                          self.defaultPronunciations,
-                                          self.defaultKeybindings)
-
+    def setStartingProfile(self, profile=None):
+        if profile is None:
+            profile = ['Default', 'default']
+        self._backend._setProfileKey('startingProfile', profile)
 
     def setProfile(self, profile='default'):
         """Set a specific profile as the active one.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]