aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Lefebvre <alefebvre@mandriva.com>2009-09-03 15:09:09 +0000
committerAurélien Lefebvre <alefebvre@mandriva.com>2009-09-03 15:09:09 +0000
commit3c8870431a9d63c732f3192591db84828d83ffc2 (patch)
treed5b4a097ababdd5933140560ba726a67a6bd87e7
parent331cb730da2d422ff548ecfa04c5216ef50efa21 (diff)
downloaduserdrake-3c8870431a9d63c732f3192591db84828d83ffc2.tar
userdrake-3c8870431a9d63c732f3192591db84828d83ffc2.tar.gz
userdrake-3c8870431a9d63c732f3192591db84828d83ffc2.tar.bz2
userdrake-3c8870431a9d63c732f3192591db84828d83ffc2.tar.xz
userdrake-3c8870431a9d63c732f3192591db84828d83ffc2.zip
- password weakness: display icon instead of changing the
entry background (require >= drakx-12.47)
-rw-r--r--NEWS2
-rwxr-xr-xuserdrake2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 72e2b70..7d4dd43 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- password weakness: display icon instead of changing the
+ entry background (require >= drakx-12.47)
- added password weakness check (require >= drakx-12.45)
Version 1.9.1 - 15 April 2009, Thierry Vignaud
diff --git a/userdrake b/userdrake
index 12bcffb..fe6ff46 100755
--- a/userdrake
+++ b/userdrake
@@ -682,7 +682,7 @@ sub BuildUui {
$us->{o}{passwd}->signal_connect(changed => sub {
require authentication;
my $password_weakness = authentication::compute_password_weakness($us->{o}{passwd}->get_text);
- $us->{o}{passwd}->modify_base('GTK_STATE_NORMAL', interactive::gtk::get_weakness_color($password_weakness));
+ $us->{o}{passwd}->set_icon_from_pixbuf('GTK_ENTRY_ICON_SECONDARY', interactive::gtk::get_weakness_icon($password_weakness));
});
$vbox;
}