orca r3449 - in trunk: . src/orca



Author: richb
Date: Fri Jan 11 21:57:11 2008
New Revision: 3449
URL: http://svn.gnome.org/viewvc/orca?rev=3449&view=rev

Log:
        * src/orca/orca_gui_prefs.py:
          Fixup a traceback in _setZoomerSpinButtons, if the user was
          trying to startup an application specific Orca preferences.


Modified:
   trunk/ChangeLog
   trunk/src/orca/orca_gui_prefs.py

Modified: trunk/src/orca/orca_gui_prefs.py
==============================================================================
--- trunk/src/orca/orca_gui_prefs.py	(original)
+++ trunk/src/orca/orca_gui_prefs.py	Fri Jan 11 21:57:11 2008
@@ -1294,7 +1294,11 @@
             1,
             targetHeight / 16, targetHeight)
 
-        spinButton = orca_state.orcaOS.get_widget("magZoomerTopSpinButton")
+        if orca_state.appOS:
+            spinButton = orca_state.appOS.get_widget("magZoomerTopSpinButton")
+        else:
+            spinButton = orca_state.orcaOS.get_widget("magZoomerTopSpinButton")
+
         spinButton.set_adjustment(adjustment)
         if topPosition > targetHeight:
             spinButton.update()
@@ -1311,7 +1315,11 @@
             1,
             targetWidth / 16, targetWidth)
 
-        spinButton = orca_state.orcaOS.get_widget("magZoomerLeftSpinButton")
+        if orca_state.appOS:
+            spinButton = orca_state.appOS.get_widget("magZoomerLeftSpinButton")
+        else:
+            spinButton = orca_state.orcaOS.get_widget("magZoomerLeftSpinButton")
+
         spinButton.set_adjustment(adjustment)
         if leftPosition > targetWidth:
             spinButton.update()
@@ -1328,7 +1336,13 @@
             1,
             targetWidth / 16, targetWidth)
 
-        spinButton = orca_state.orcaOS.get_widget("magZoomerRightSpinButton")
+        if orca_state.appOS:
+            spinButton = \
+                orca_state.appOS.get_widget("magZoomerRightSpinButton")
+        else:
+            spinButton = \
+                orca_state.orcaOS.get_widget("magZoomerRightSpinButton")
+
         spinButton.set_adjustment(adjustment)
         if rightPosition > targetWidth:
             spinButton.update()
@@ -1345,7 +1359,12 @@
             1,
             targetHeight / 16, targetHeight)
 
-        spinButton = orca_state.orcaOS.get_widget("magZoomerBottomSpinButton")
+        if orca_state.appOS:
+            spinButton = \
+                orca_state.appOS.get_widget("magZoomerBottomSpinButton")
+        else:
+            spinButton = \
+                orca_state.orcaOS.get_widget("magZoomerBottomSpinButton")
         spinButton.set_adjustment(adjustment)
         if bottomPosition > targetHeight:
             spinButton.update()



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