summaryrefslogtreecommitdiff
path: root/portato/gui/dialogs.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-06-25 11:39:47 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-06-25 11:39:47 +0200
commit01f01abb51af0639bd0e1fccd4ad5fccd5ca074c (patch)
treeaa7eb521a83be88e696bc19c79fa26eff4a3d2d3 /portato/gui/dialogs.py
parent235a2b16ef2b6e562ce31a81f9c69451d6da6a39 (diff)
downloadportato-01f01abb51af0639bd0e1fccd4ad5fccd5ca074c.tar.gz
portato-01f01abb51af0639bd0e1fccd4ad5fccd5ca074c.tar.bz2
portato-01f01abb51af0639bd0e1fccd4ad5fccd5ca074c.zip
Added mail error message dialog
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 8f0c78c..7f8a736 100644
--- a/portato/gui/dialogs.py
+++ b/portato/gui/dialogs.py
@@ -13,6 +13,13 @@
import gtk
from ..helper import error
+def mail_failure_dialog(e):
+ dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, _("Mail could not be sent"))
+ dialog.format_secondary_text(_("The error was: %s") % e)
+ 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, _("There are some packages in the emerge queue and/or an emerge process is running.\nDo you really want to quit?"))
#dialog.add_buttons(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_SAVE, gtk.RESPONSE_YES, gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)