[gnome-system-tools] Only commit OobsGroup instead of whole OobsGroupsConfig



commit 0afc35c93bb394f25799e95a059cc84339a74c63
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sun Jan 17 12:53:57 2010 +0100

    Only commit OobsGroup instead of whole OobsGroupsConfig
    
    When editing one group from group settings dialog, no need to commit all groups on the system, which is risky and slow.

 src/users/callbacks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/users/callbacks.c b/src/users/callbacks.c
index 27962e2..7caa767 100644
--- a/src/users/callbacks.c
+++ b/src/users/callbacks.c
@@ -256,7 +256,7 @@ on_group_settings_clicked (GtkButton *button, gpointer user_data)
 	    && gst_tool_authenticate (tool, OOBS_OBJECT (group))) {
 		group_settings_dialog_get_data (group);
 		groups_table_set_group (group, &iter);
-		gst_tool_commit (tool, GST_USERS_TOOL (tool)->groups_config);
+		gst_tool_commit (tool, OOBS_OBJECT (group));
 	}
 
 	g_object_unref (group);



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