summaryrefslogtreecommitdiff
path: root/portato/gui/dialogs.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/dialogs.py')
-rw-r--r--portato/gui/dialogs.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/portato/gui/dialogs.py b/portato/gui/dialogs.py
index 0313cae..8f0c78c 100644
--- a/portato/gui/dialogs.py
+++ b/portato/gui/dialogs.py
@@ -57,11 +57,15 @@ def nothing_found_dialog ():
return ret
def changed_flags_dialog (what = "flags"):
+ check = gtk.CheckButton(_("Do not show this dialog again."))
hintMB = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK,
- _("You have changed %s. Portato will write these changes into the appropriate files. Please backup them if you think it is necessairy.") % what)
+ _("You have changed %s.\nPortato will write these changes into the appropriate files.\nPlease backup them if you think it is necessairy.") % what)
+ hintMB.vbox.add(check)
+ hintMB.vbox.show_all()
ret = hintMB.run()
hintMB.destroy()
- return ret
+
+ return ret, check.get_active()
def remove_deps_dialog ():
infoMB = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, _("You cannot remove dependencies. :)"))