summaryrefslogtreecommitdiff
path: root/portato/gui/dialogs.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-03-14 21:06:19 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-03-14 21:06:19 +0100
commitd772c8db351d46ed4fc9f55eb978200ebbe98307 (patch)
tree0a7fa0c688f8714036f91c307e2f3ef2f00115c3 /portato/gui/dialogs.py
parentc8fab8cd56c88d2322104afc960c836a543cd3d6 (diff)
downloadportato-d772c8db351d46ed4fc9f55eb978200ebbe98307.tar.gz
portato-d772c8db351d46ed4fc9f55eb978200ebbe98307.tar.bz2
portato-d772c8db351d46ed4fc9f55eb978200ebbe98307.zip
Show a dialog if no email is given
Diffstat (limited to 'portato/gui/dialogs.py')
-rw-r--r--portato/gui/dialogs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/portato/gui/dialogs.py b/portato/gui/dialogs.py
index 6044a5b..7ad5c7f 100644
--- a/portato/gui/dialogs.py
+++ b/portato/gui/dialogs.py
@@ -20,6 +20,13 @@ def mail_failure_dialog(e):
dialog.destroy()
return ret
+def no_email_dialog(p):
+ dialog = gtk.MessageDialog(p, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK_CANCEL, _("No email address given"))
+ dialog.format_secondary_text(_("You haven't specified an email address. Without it, it will not be possible for the developers to contact you for questions and thus it might be harder to fix the bug.\n\nDo you want to proceed nevertheless?"))
+ ret = dialog.run()
+ dialog.destroy()
+ return ret
+
def queue_not_empty_dialog():
dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_NONE, _("Do you really want to quit?"))
dialog.format_secondary_text(_("There are some packages in the emerge queue and/or an emerge process is running."))