diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-23 23:42:57 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-23 23:42:57 +0200 |
commit | c0b751facc2dd5ca6dc6bf15a855e4d22dd24356 (patch) | |
tree | 4011f70cd8cbb0df76218f49744d745e1f5fa7d8 /portato/gui/dialogs.py | |
parent | 771d3afbe73ffdd7df3381fb0bcde737ade2e4f8 (diff) | |
download | portato-c0b751facc2dd5ca6dc6bf15a855e4d22dd24356.tar.gz portato-c0b751facc2dd5ca6dc6bf15a855e4d22dd24356.tar.bz2 portato-c0b751facc2dd5ca6dc6bf15a855e4d22dd24356.zip |
allowed to dismiss the warning dialogs for keywords/useflags
Diffstat (limited to '')
-rw-r--r-- | portato/gui/dialogs.py | 8 |
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. :)")) |