summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-01-31 16:27:00 +0000
committerChris Lumens <clumens@redhat.com>2007-01-31 16:27:00 +0000
commitc35823cbb1624860dd3b327ca63933361052abfc (patch)
treeceaec9159b87aa45f1b9d5246e5bdb02d22fa710 /gui.py
parent15487459ecc16b8059cc23f2f6e18c85487b7ef6 (diff)
downloadanaconda-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-xgui.py7
1 files changed, 5 insertions, 2 deletions
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):