diff options
author | Aurélien Lefebvre <alefebvre@mandriva.com> | 2009-09-08 14:55:25 +0000 |
---|---|---|
committer | Aurélien Lefebvre <alefebvre@mandriva.com> | 2009-09-08 14:55:25 +0000 |
commit | 1523226f9ef76aa22d23c3dfd70bcbd01ab56d56 (patch) | |
tree | c338383aebc5f44dc064580d3f58547b69f78839 | |
parent | bf9334a7350cd97ef98ef7c665d5a8642717ea11 (diff) | |
download | userdrake-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-- | NEWS | 2 | ||||
-rwxr-xr-x | userdrake | 8 |
2 files changed, 3 insertions, 7 deletions
@@ -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 @@ -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; } |