[gnome-control-center/gnome-3-8] user-accounts: Set the password mode to regular mode when user changes his password



commit 442a302b82f34267efe6df7d701e6dfd19354254
Author: Jean-Benoit MARTIN <jean-benoit martin eurogiciel fr>
Date:   Thu Jun 6 13:21:59 2013 +0200

    user-accounts: Set the password mode to regular mode when user changes his password
    
    The password mode is not set immediately.
    Set the password mode to regular mode in password dialogue panel
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701701

 panels/user-accounts/um-password-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-password-dialog.c b/panels/user-accounts/um-password-dialog.c
index 36b9ae4..929ca02 100644
--- a/panels/user-accounts/um-password-dialog.c
+++ b/panels/user-accounts/um-password-dialog.c
@@ -229,6 +229,7 @@ accept_password_dialog (GtkButton        *button,
 
         switch (mode) {
                 case UM_PASSWORD_DIALOG_MODE_NORMAL:
+                        act_user_set_password_mode (um->user, ACT_USER_PASSWORD_MODE_REGULAR);
                         if (act_user_get_uid (um->user) == getuid ()) {
                                 GdkDisplay *display;
                                 GdkCursor *cursor;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]