diff options
author | Chris Lumens <clumens@redhat.com> | 2007-01-31 16:27:00 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-01-31 16:27:00 +0000 |
commit | c35823cbb1624860dd3b327ca63933361052abfc (patch) | |
tree | ceaec9159b87aa45f1b9d5246e5bdb02d22fa710 /gui.py | |
parent | 15487459ecc16b8059cc23f2f6e18c85487b7ef6 (diff) | |
download | anaconda-c35823cbb1624860dd3b327ca63933361052abfc.tar.gz anaconda-c35823cbb1624860dd3b327ca63933361052abfc.tar.xz anaconda-c35823cbb1624860dd3b327ca63933361052abfc.zip |
Add parent parameter, and fix argument passing so these windows get run on
kickstart installs.
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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): |