From c35823cbb1624860dd3b327ca63933361052abfc Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 31 Jan 2007 16:27:00 +0000 Subject: Add parent parameter, and fix argument passing so these windows get run on kickstart installs. --- gui.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gui.py') diff --git a/gui.py b/gui.py index 5803cdf89..84fcabb00 100755 --- a/gui.py +++ b/gui.py @@ -679,7 +679,7 @@ class MessageWindow: def getrc (self): return self.rc - def __init__ (self, title, text, type="ok", default=None, custom_buttons=None, custom_icon=None, run = True, destroyAfterRun = True): + def __init__ (self, title, text, type="ok", default=None, custom_buttons=None, custom_icon=None, run = True, parent = None, destroyAfterRun = True): self.debugRid = None self.title = title if flags.autostep: @@ -716,6 +716,9 @@ class MessageWindow: self.dialog = gtk.MessageDialog(mainWindow, 0, style, buttons, text) + if parent: + self.dialog.set_transient_for(parent) + if docustom: rid=0 for button in custom_buttons: @@ -868,7 +871,7 @@ class InstallInterface: parent = None rc = MessageWindow (title, text, type, default, - custom_buttons, custom_icon, parent).getrc() + custom_buttons, custom_icon, run=True, parent=parent).getrc() return rc def entryWindow(self, title, text, type="ok", entrylength = None): -- cgit