summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rwxr-xr-xgui.py19
2 files changed, 23 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e96b1638..dc6e6037b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-19 Chris Lumens <clumens@redhat.com>
+
+ * gui.py: We don't always have an ICW.
+
+ * installclass.py (BaseInstallClass.setEarlySwapOn): Remove unused
+ code.
+
2007-01-19 Jeremy Katz <katzj@redhat.com>
* scripts/mk-images.x86: Fix sed calls, make sure we remove cruft
diff --git a/gui.py b/gui.py
index a532ae0f0..5803cdf89 100755
--- a/gui.py
+++ b/gui.py
@@ -824,6 +824,8 @@ class EntryWindow(MessageWindow):
class InstallInterface:
def __init__ (self):
+ self.icw = None
+
# figure out if we want to run interface at 800x600 or 640x480
if gtk.gdk.screen_width() >= 800:
self.runres = "800x600"
@@ -843,10 +845,16 @@ class InstallInterface:
self.ppw = ppw
def waitWindow (self, title, text):
- return WaitWindow (title, text, self.icw.window)
+ if self.icw:
+ return WaitWindow (title, text, self.icw.window)
+ else:
+ return WaitWindow (title, text)
def progressWindow (self, title, text, total, updpct = 0.05):
- return ProgressWindow (title, text, total, updpct, self.icw.window)
+ if self.icw:
+ return ProgressWindow (title, text, total, updpct, self.icw.window)
+ else:
+ return ProgressWindow (title, text, total, updpct)
def packageProgressWindow (self, total, totalSize):
self.ppw.setSizes (total, totalSize)
@@ -854,8 +862,13 @@ class InstallInterface:
def messageWindow(self, title, text, type="ok", default = None,
custom_buttons=None, custom_icon=None):
+ if self.icw:
+ parent = self.icw.window
+ else:
+ parent = None
+
rc = MessageWindow (title, text, type, default,
- custom_buttons, custom_icon, self.icw.window).getrc()
+ custom_buttons, custom_icon, parent).getrc()
return rc
def entryWindow(self, title, text, type="ok", entrylength = None):