summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-03-01 00:02:20 +0000
committerMike Fulbright <msf@redhat.com>2001-03-01 00:02:20 +0000
commitd1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143 (patch)
treeca8b168d306576711902eaee1212f779b02907b6 /gui.py
parentf040348adc40e3627aaa271b1bd93bb6effed1ec (diff)
downloadanaconda-d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143.tar.gz
anaconda-d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143.tar.xz
anaconda-d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143.zip
fix for bug 26792
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index f0535c15d..1af539da3 100755
--- a/gui.py
+++ b/gui.py
@@ -235,6 +235,12 @@ class MessageWindow:
if self.mutex:
self.mutex.set ()
+ def questionquit (self, button):
+ self.rc = button
+
+ if self.mutex:
+ self.mutex.set ()
+
def getrc (self):
return self.rc
@@ -247,6 +253,9 @@ class MessageWindow:
self.window.connect ("close", self.quit)
if type == "okcancel":
self.window = GnomeOkCancelDialog (_(text), self.okcancelquit)
+ if type == "yesno":
+ self.window = GnomeQuestionDialog (_(text), self.questionquit)
+
# this is the pixmap + the label
hbox = self.window.vbox.children ()[0]
label = hbox.children ()[1]