summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/windows.py
diff options
context:
space:
mode:
authornecoro <>2007-04-24 14:36:36 +0000
committernecoro <>2007-04-24 14:36:36 +0000
commit13f5b071027e5aed0f9ae5eec88f4095f2246f98 (patch)
treeba0d292dc1710d211dda699968f4c95ed907150f /portato/gui/gtk/windows.py
parent7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe (diff)
downloadportato-13f5b071027e5aed0f9ae5eec88f4095f2246f98.tar.gz
portato-13f5b071027e5aed0f9ae5eec88f4095f2246f98.tar.bz2
portato-13f5b071027e5aed0f9ae5eec88f4095f2246f98.zip
added dialogs to warn you when the queue is running on quitting portato
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/windows.py11
1 files changed, 11 insertions, 0 deletions
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()