diff options
-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; } |