From 13f5b071027e5aed0f9ae5eec88f4095f2246f98 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Tue, 24 Apr 2007 14:36:36 +0000 Subject: added dialogs to warn you when the queue is running on quitting portato --- portato/gui/gtk/windows.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'portato/gui/gtk/windows.py') diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index 5aeceed..12b7a58 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -1115,6 +1115,17 @@ class MainWindow (Window): def cb_copy_clicked (self, action): self.console.copy_clipboard() + def cb_delete (self, *args): + """Looks whether we really want to quit.""" + if not self.queue.is_empty(): + ret = queue_not_empty_dialog() + if ret == gtk.RESPONSE_CANCEL: + return True + else: + self.queue.kill_emerge() + + return False + def cb_destroy (self, widget): """Calls main_quit().""" gtk.main_quit() -- cgit v1.2.3-70-g09d2