summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/dialogs.py
diff options
context:
space:
mode:
authorNecoro <>2007-11-21 14:01:42 +0000
committerNecoro <>2007-11-21 14:01:42 +0000
commit74724513e65f9c037b2c266bd01c806f7aafc88c (patch)
treecf46c1816fa4fc7fd9ef1473a4e15d87f55591ee /portato/gui/gtk/dialogs.py
parenta5f79bc4549506f98bff59bcab6d3ea98493c716 (diff)
downloadportato-74724513e65f9c037b2c266bd01c806f7aafc88c.tar.gz
portato-74724513e65f9c037b2c266bd01c806f7aafc88c.tar.bz2
portato-74724513e65f9c037b2c266bd01c806f7aafc88c.zip
r561@Devoty: necoro | 2007-11-20 09:29:35 +0100
Improved session support
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/dialogs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/portato/gui/gtk/dialogs.py b/portato/gui/gtk/dialogs.py
index 9da8cbd..a176a17 100644
--- a/portato/gui/gtk/dialogs.py
+++ b/portato/gui/gtk/dialogs.py
@@ -14,7 +14,8 @@ import gtk
from gettext import lgettext as _
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?"))
+ 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)
ret = dialog.run()
dialog.destroy()
return ret