Index: settings.py
===================================================================
RCS file: /cvs/gnome/orca/src/orca/settings.py,v
retrieving revision 1.44
diff -u -r1.44 settings.py
--- settings.py	4 May 2006 18:31:13 -0000	1.44
+++ settings.py	4 May 2006 19:01:00 -0000
@@ -24,7 +24,20 @@
 
 import re
 import sys
-import gtk.gdk
+try:
+    # This can fail due to gtk not being available.  We want to
+    # be able to recover from that if possible.  The main driver
+    # for this is to allow "orca --text-setup" to work even if
+    # the desktop is not running.
+    #
+    import gtk.gdk
+    screenWidth = gtk.gdk.screen_get_default().get_width()
+    screenHeight = gtk.gdk.screen_get_default().get_height()
+except:
+    # Just default to something that hopefully everybody has.
+    #
+    screenWidth = 640
+    screenWidth = 480
 
 import debug
 from acss import ACSS
@@ -179,10 +192,10 @@
 
 # Magnification zoomer region placement.
 #
-magZoomerLeft                    = (gtk.gdk.screen_get_default().get_width() / 2)
-magZoomerRight                   = gtk.gdk.screen_get_default().get_width()
+magZoomerLeft                    = screenWidth / 2
+magZoomerRight                   = screenWidth
 magZoomerTop                     = 0
-magZoomerBottom                  = gtk.gdk.screen_get_default().get_height()
+magZoomerBottom                  = screenHeight
 
 # Magnification zoom factor.
 #
