aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Lefebvre <alefebvre@mandriva.com>2009-09-08 14:55:25 +0000
committerAurélien Lefebvre <alefebvre@mandriva.com>2009-09-08 14:55:25 +0000
commit1523226f9ef76aa22d23c3dfd70bcbd01ab56d56 (patch)
treec338383aebc5f44dc064580d3f58547b69f78839
parentbf9334a7350cd97ef98ef7c665d5a8642717ea11 (diff)
downloaduserdrake-1523226f9ef76aa22d23c3dfd70bcbd01ab56d56.tar
userdrake-1523226f9ef76aa22d23c3dfd70bcbd01ab56d56.tar.gz
userdrake-1523226f9ef76aa22d23c3dfd70bcbd01ab56d56.tar.bz2
userdrake-1523226f9ef76aa22d23c3dfd70bcbd01ab56d56.tar.xz
userdrake-1523226f9ef76aa22d23c3dfd70bcbd01ab56d56.zip
- userdrake now use 'WeaknessCheckEntry' widget from mygtk2
(require >= drakx-12.49)
-rw-r--r--NEWS2
-rwxr-xr-xuserdrake8
2 files changed, 3 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 2ab9eed..3a7887c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- now use 'WeaknessCheckEntry' widget from mygtk2
+ (require >= drakx-12.49)
- password weakness: added tooltip text to icon
(require >= drakx-12.49)
- password weakness: display icon instead of changing the
diff --git a/userdrake b/userdrake
index 2ce731b..ab800d2 100755
--- a/userdrake
+++ b/userdrake
@@ -652,7 +652,7 @@ sub CreateTree {
sub GtkEntryHidePass {
my ($text) = @_;
- my $e = Gtk2::Entry->new;
+ my $e = gtknew('WeaknessCheckEntry');
$text and $e->set_text($text);
$e->set_visibility(0);
$e;
@@ -679,12 +679,6 @@ sub BuildUui {
);
$us->{o}{shells}->set_popdown_strings(@{$ctx->GetUserShells});
$us->{o}{shells}->entry->set_text("/bin/bash");
- $us->{o}{passwd}->signal_connect(changed => sub {
- require authentication;
- my $password_weakness = authentication::compute_password_weakness($us->{o}{passwd}->get_text);
- $us->{o}{passwd}->set_icon_from_pixbuf('GTK_ENTRY_ICON_SECONDARY', interactive::gtk::get_weakness_icon($password_weakness));
- $us->{o}{passwd}->set_icon_tooltip_text('GTK_ENTRY_ICON_SECONDARY', interactive::gtk::get_weakness_tooltip($password_weakness));
- });
$vbox;
}