From 3c8870431a9d63c732f3192591db84828d83ffc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Lefebvre?= Date: Thu, 3 Sep 2009 15:09:09 +0000 Subject: - password weakness: display icon instead of changing the entry background (require >= drakx-12.47) --- NEWS | 2 ++ userdrake | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.1