From d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Thu, 1 Mar 2001 00:02:20 +0000 Subject: fix for bug 26792 --- gui.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gui.py') 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] -- cgit