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:
parent
34bf1d6076
commit
1ed6f51d8e
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue