[orca/new-settings] Fix the saving app settings (needed for orca-customizations settings to be preserved)
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Fix the saving app settings (needed for orca-customizations settings to be preserved)
- Date: Sat, 11 Dec 2010 01:00:33 +0000 (UTC)
commit b9d43378a9fa028a2b5379c81b4415571b26007b
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Fri Dec 10 19:59:20 2010 -0500
Fix the saving app settings (needed for orca-customizations settings to be preserved)
src/orca/default.py | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/default.py b/src/orca/default.py
index aed93cc..591841e 100644
--- a/src/orca/default.py
+++ b/src/orca/default.py
@@ -5063,9 +5063,14 @@ class Script(script.Script):
"""Save a copy of all the existing application specific settings
(as specified by the settings.userCustomizableSettings dictionary)."""
- _settingsManager = getattr(orca, '_settingsManager')
-
- return _settingsManager.getGeneralSettings(_settingsManager.profile)
+ prefsDict = {}
+ for key in settings.userCustomizableSettings:
+ try:
+ prefsDict[key] = getattr(settings, key)
+ except:
+ pass
+
+ return prefsDict
def restoreOldAppSettings(self, prefsDict):
"""Restore a copy of all the previous saved application settings.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]