[orca/new-settings] Removed some prints for debuging and fixed some issues with the loading of profiles and some special



commit 201c4eab10ff14e19018f82b454892ca88193804
Author: Juanje Ojeda <jojeda emergya es>
Date:   Wed Oct 20 21:14:04 2010 +0200

    Removed some prints for debuging and fixed some issues with the loading of profiles and some special settings keys

 src/orca/backends/gconf_backend.py |    8 ++++----
 src/orca/orca_gui_prefs.py         |    7 +------
 2 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/src/orca/backends/gconf_backend.py b/src/orca/backends/gconf_backend.py
index 82dccd2..6ee97f1 100644
--- a/src/orca/backends/gconf_backend.py
+++ b/src/orca/backends/gconf_backend.py
@@ -664,7 +664,10 @@ class OrcaPrefs():
 
         value = None
         if key in prefsDict:
-            return prefsDict[key]
+            if key is 'magCursorColor':
+                value = self._getMagColorString(prefsDict[key])
+            else:
+                return prefsDict[key]
         return value
 
     def writePreferences(self):
@@ -773,8 +776,6 @@ class OrcaPrefs():
             path = '/apps/gnome-orca/activeProfile'
         profileKey = self._client.get_list(path, gconf.VALUE_STRING)
         self.__app_key += '/%s' % profileKey[1]
-        #    self.options = self.DEFAULTS
-        #    self.gconf_save()
  
         self.gconf_load()
 
@@ -875,7 +876,6 @@ def readPreferences():
         except:
             pass 
 
-    print "\t*** DEBUG: inside gconf_backend.readPreferences() ***"
     if isFirstStart():
         client = gconf.client_get_default()
         path = '/apps/gnome-orca/startingProfile'
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index d7722d3..041ee04 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -4553,18 +4553,13 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
         gclient = gconf.client_get_default()
         activeProfile = self.getComboBoxList(self.profilesCombo)
         self.prefsDict['activeProfile'] = activeProfile
-        print "\tDEBUG: self.prefsDict['activeProfile'] = ", self.prefsDict['activeProfile']
-        print "\tDEBUG: activeProfile: ", activeProfile
         gclient.set_list('/apps/gnome-orca/activeProfile',
                          gconf.VALUE_STRING,
                          activeProfile)
         
-        #orca.loadUserSettings()
-        print "\tDEBUG: self.prefsDict['activeProfile'] = ", self.prefsDict['activeProfile']
         self.prefsDict['activeProfile'] = activeProfile
+        _settingsManager.loadSettings()
         self._initGUIState()
-        print "DEBUG: after self.init()"
-        print "\tDEBUG: self.prefsDict['activeProfile'] = ", self.prefsDict['activeProfile']
 
         self._initSpeechState()
 



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