[gnome-control-center] user-accounts: Correct initial focus in password dialogue
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Correct initial focus in password dialogue
- Date: Fri, 9 Sep 2011 08:59:31 +0000 (UTC)
commit 1ed6f51d8ef4081c7c463661357f4d5c8a9b10b3
Author: Bastien Nocera <hadess hadess net>
Date: Fri Sep 9 09:57:35 2011 +0100
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
panels/user-accounts/um-password-dialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-password-dialog.c b/panels/user-accounts/um-password-dialog.c
index 5bd652b..713a4cb 100644
--- a/panels/user-accounts/um-password-dialog.c
+++ b/panels/user-accounts/um-password-dialog.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]