user-accounts: Correct initial focus in password dialogue

The password dialogue needs to have the "Current password" field
focused by default if we're changing the password.

https://bugzilla.gnome.org/show_bug.cgi?id=658521
This commit is contained in:
Bastien Nocera 2011-09-09 09:57:35 +01:00
parent 34bf1d6076
commit 1ed6f51d8e

View file

@ -830,6 +830,9 @@ um_password_dialog_show (UmPasswordDialog *um,
{
gtk_window_set_transient_for (GTK_WINDOW (um->dialog), parent);
gtk_window_present (GTK_WINDOW (um->dialog));
gtk_widget_grab_focus (um->password_entry);
if (um->old_password_ok == FALSE)
gtk_widget_grab_focus (um->old_password_entry);
else
gtk_widget_grab_focus (um->password_entry);
}