[orca/new-settings] Applying new Settings Manager API in all the code.
- From: Alejandro Leiva <aleiva src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Applying new Settings Manager API in all the code.
- Date: Tue, 26 Oct 2010 11:08:38 +0000 (UTC)
commit c3b7ca1accc60fbe08646bae76ab7b13094ebead
Author: Alejandro Leiva <aleiva emergya es>
Date: Tue Oct 26 12:02:20 2010 +0200
Applying new Settings Manager API in all the code.
src/orca/default.py | 5 ++---
src/orca/orca_gui_profile.py | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/default.py b/src/orca/default.py
index 3fb3992..03edd51 100644
--- a/src/orca/default.py
+++ b/src/orca/default.py
@@ -5057,10 +5057,9 @@ class Script(script.Script):
import settings_manager
_settingsManager = SettingsManager()
- _settingsManager.loadBackend()
+ _settingsManager._loadBackend()
- #return orca_prefs.readPreferences()
- return _settingsManager.readPreferences()
+ return _settingsManager.getGeneralSettings(_settingsManager.profile)
def restoreOldAppSettings(self, prefsDict):
"""Restore a copy of all the previous saved application settings.
diff --git a/src/orca/orca_gui_profile.py b/src/orca/orca_gui_profile.py
index bfd065b..25f438a 100644
--- a/src/orca/orca_gui_profile.py
+++ b/src/orca/orca_gui_profile.py
@@ -151,7 +151,7 @@ class OrcaProfileGUI(orca_gtkbuilder.GtkBuilderWrapper):
"""Get available user profiles"""
_settingsManager = SettingsManager()
- _settingsManager.loadBackend()
+ _settingsManager._loadBackend()
return _settingsManager.availableProfiles()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]