[gnome-system-tools] Add all OobsUsers to the list of configuration objects



commit 2419ad6e4ae5b91e1b560cfbb21c70a1c9a50391
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Mon Jan 11 17:08:26 2010 +0100

    Add all OobsUsers to the list of configuration objects
    
    This allows users-admin to skip updating after we have committed changes.

 src/users/user-settings.c |    1 +
 src/users/users-tool.c    |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index 10bb7a6..dbaccbb 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -971,6 +971,7 @@ on_user_new (GtkButton *button, gpointer user_data)
 	result = oobs_users_config_add_user (users_config, user);
 	if (result == OOBS_RESULT_OK) {
 		gst_tool_commit (tool, GST_USERS_TOOL (tool)->groups_config);
+
 		user_path = users_table_add_user (user);
 		users_table_select_path (user_path);
 		gtk_tree_path_free (user_path);
diff --git a/src/users/users-tool.c b/src/users/users-tool.c
index 0678827..51829f1 100644
--- a/src/users/users-tool.c
+++ b/src/users/users-tool.c
@@ -138,6 +138,7 @@ update_users (GstUsersTool *tool)
 	while (valid) {
 		user = oobs_list_get (list, &iter);
 		users_table_add_user (OOBS_USER (user));
+		gst_tool_add_configuration_object (GST_TOOL (tool), OOBS_OBJECT (user));
 
 		g_object_unref (user);
 		valid = oobs_list_iter_next (list, &iter);
@@ -163,6 +164,7 @@ update_groups (GstUsersTool *tool)
 	while (valid) {
 		group = oobs_list_get (list, &iter);
 		groups_table_add_group (OOBS_GROUP (group));
+		gst_tool_add_configuration_object (GST_TOOL (tool), OOBS_OBJECT (group));
 
 		/* update privileges table too */
 		privileges_table_add_group (OOBS_GROUP (group));



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