[orca/orca-gnome3: 43/87] Fix for bug #Bug 645241 - Attempting to manually run certain app-settings files results in a traceba



commit 20f350e9cf15e61b1725d4bf8f19d1018ffdd1be
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sat Mar 19 13:26:29 2011 -0400

    Fix for bug #Bug 645241 - Attempting to manually run certain app-settings files results in a traceback

 src/orca/scripts/apps/Thunderbird/script.py  |    2 ++
 src/orca/scripts/apps/soffice/script.py      |    1 +
 src/orca/scripts/apps/yelp/yelp_v2/script.py |    1 +
 src/orca/scripts/toolkits/Gecko/script.py    |    1 +
 4 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index b3192b2..5740cc4 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -134,6 +134,8 @@ class Script(Gecko.Script):
         # Write the Thunderbird specific settings.
         #
         prefix = "orca.scripts.apps.Thunderbird.script_settings"
+        prefs.writelines("import %s\n\n" % prefix)
+
         value = self.sayAllOnLoadCheckButton.get_active()
         prefs.writelines("%s.sayAllOnLoad = %s\n" % (prefix, value))
         script_settings.sayAllOnLoad = value
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 76bcd1c..84be8fb 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -407,6 +407,7 @@ class Script(default.Script):
 
         prefs.writelines("\n")
         prefix = "orca.scripts.apps.soffice.script_settings"
+        prefs.writelines("import %s\n\n" % prefix)
 
         script_settings.speakSpreadsheetCoordinates = \
             self.speakSpreadsheetCoordinatesCheckButton.get_active()
diff --git a/src/orca/scripts/apps/yelp/yelp_v2/script.py b/src/orca/scripts/apps/yelp/yelp_v2/script.py
index a439489..534a9d2 100644
--- a/src/orca/scripts/apps/yelp/yelp_v2/script.py
+++ b/src/orca/scripts/apps/yelp/yelp_v2/script.py
@@ -96,6 +96,7 @@ class Script(Gecko.Script):
         # Write the Yelp specific settings.
         #
         prefix = "orca.scripts.apps.yelp.yelp_v2.script_settings"
+        prefs.writelines("import %s\n\n" % prefix)
 
         value = self.grabFocusOnAncestorCheckButton.get_active()
         prefs.writelines("%s.grabFocusOnAncestor = %s\n" % (prefix, value))
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 17f3548..06f3403 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -928,6 +928,7 @@ class Script(default.Script):
 
         prefs.writelines("\n")
         prefix = "orca.scripts.toolkits.Gecko.script_settings"
+        prefs.writelines("import %s\n\n" % prefix)
 
         value = self.controlCaretNavigationCheckButton.get_active()
         prefs.writelines("%s.controlCaretNavigation = %s\n" % (prefix, value))



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