[gnome-system-tools] Fix updating password status and account type



commit 45c15b1284f5d7d86fa6c631f7361057d5d850e1
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Mon Mar 8 19:51:35 2010 +0100

    Fix updating password status and account type
    
    After modifying an user, ensure we show the updated information. After settings password, we know it's not empty, so show it.

 src/users/user-password.c |    4 ++++
 src/users/user-settings.c |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/users/user-password.c b/src/users/user-password.c
index d001acd..12a2ea0 100644
--- a/src/users/user-password.c
+++ b/src/users/user-password.c
@@ -369,6 +369,10 @@ finish_password_change ()
 		}
 	}
 
+	/* We know we've set a non-empty password */
+	oobs_user_set_password_empty (user, FALSE);
+	user_settings_show (user);
+
 	gst_dialog_remove_edit_dialog (tool->main_dialog, GTK_WIDGET (user_passwd_dialog));
 	gtk_widget_hide (GTK_WIDGET (user_passwd_dialog));
 
diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index fe772c3..dd06c91 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -1191,6 +1191,8 @@ on_edit_user_profile (GtkButton *button, gpointer user_data)
 		  if (response == GTK_RESPONSE_OK) {
 			  if (gst_tool_commit (tool, OOBS_OBJECT (user)) == OOBS_RESULT_OK)
 				  gst_tool_commit (tool, GST_USERS_TOOL (tool)->groups_config);
+
+			  user_settings_show (user);
 		  }
 	  }
 



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