summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/dialogs.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/gtk/dialogs.py')
-rw-r--r--portato/gui/gtk/dialogs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/portato/gui/gtk/dialogs.py b/portato/gui/gtk/dialogs.py
index f6573ef..24d1a20 100644
--- a/portato/gui/gtk/dialogs.py
+++ b/portato/gui/gtk/dialogs.py
@@ -12,6 +12,12 @@
import gtk
+def queue_not_empty_dialog():
+ dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_OK_CANCEL, "There are some packages in the emerge queue and/or an emerge process is running.\nDo you really want to quit?")
+ ret = dialog.run()
+ dialog.destroy()
+ return ret
+
def io_ex_dialog (io_ex):
string = io_ex.strerror
if io_ex.filename: