[orca/new-settings] Get the _settingsManager instance instead of create a new one at orca_gui_profile.py
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Get the _settingsManager instance instead of create a new one at orca_gui_profile.py
- Date: Thu, 28 Oct 2010 20:10:07 +0000 (UTC)
commit cd13df381d298797dd518b1ad52e576d056c8c6a
Author: Juanje Ojeda <jojeda emergya es>
Date: Thu Oct 28 22:09:59 2010 +0200
Get the _settingsManager instance instead of create a new one
at orca_gui_profile.py
src/orca/orca_gui_profile.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/orca_gui_profile.py b/src/orca/orca_gui_profile.py
index 25f438a..4011bd9 100644
--- a/src/orca/orca_gui_profile.py
+++ b/src/orca/orca_gui_profile.py
@@ -150,8 +150,9 @@ class OrcaProfileGUI(orca_gtkbuilder.GtkBuilderWrapper):
def __getAvailableProfiles(self):
"""Get available user profiles"""
- _settingsManager = SettingsManager()
- _settingsManager._loadBackend()
+ import orca
+
+ _settingsManager = getattr(orca, '_settingsManager')
return _settingsManager.availableProfiles()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]