From 614dcfcc90e7d856d94a18a5403ca858afef17ff Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 19 May 2009 13:55:06 -0400 Subject: Make the weak password dialog comply with the HIG (#487435). --- iw/account_gui.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'iw') diff --git a/iw/account_gui.py b/iw/account_gui.py index 2e54714e3..c18d6b67a 100644 --- a/iw/account_gui.py +++ b/iw/account_gui.py @@ -130,11 +130,9 @@ class AccountWindow (InstallWindow): except ValueError, e: msg = gettext.ldgettext("cracklib", e) ret = self.intf.messageWindow(_("Weak Password"), - _("Weak password provided: %s" - "\n\n" - "Would you like to continue with " - "this password?") % (msg, ), - type = "yesno") + _("You have provided a weak password: %s") % msg, + type="custom", custom_icon="error", + custom_buttons=[_("Cancel"), _("Use Anyway")]) if ret == 0: self.passwordError() -- cgit