user-accounts: show the password by default once generated

Make sure the user can see the newly generated password without having to
activate the show password check box.

https://bugzilla.gnome.org/show_bug.cgi?id=688401
This commit is contained in:
Thomas Wood 2012-11-15 14:06:45 +00:00
parent 33d905c899
commit 33e360d4a7

View file

@ -74,6 +74,10 @@ generate_one_password (GtkWidget *widget,
gtk_entry_set_text (GTK_ENTRY (um->password_entry), pwd);
gtk_entry_set_text (GTK_ENTRY (um->verify_entry), "");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (um->show_password_button),
TRUE);
g_free (pwd);
}