summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/gtk/windows.py')
-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()