diff options
author | necoro <> | 2007-04-24 14:36:36 +0000 |
---|---|---|
committer | necoro <> | 2007-04-24 14:36:36 +0000 |
commit | 13f5b071027e5aed0f9ae5eec88f4095f2246f98 (patch) | |
tree | ba0d292dc1710d211dda699968f4c95ed907150f /portato/gui/gtk/dialogs.py | |
parent | 7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe (diff) | |
download | portato-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 'portato/gui/gtk/dialogs.py')
-rw-r--r-- | portato/gui/gtk/dialogs.py | 6 |
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: |