--- a/src/blist.c Sat Mar 19 19:16:32 2005 -0500
+++ b/src/blist.c Sat Mar 19 19:37:02 2005 -0500
@@ -165,13 +165,6 @@
-static void schedule_blist_save()
- if (blist_save_timer != 0)
- gaim_timeout_remove(blist_save_timer);
- blist_save_timer = gaim_timeout_add(1000, blist_save_callback, NULL);
/*****************************************************************************
@@ -405,7 +398,7 @@
buddy->name = g_strdup(name);
+ gaim_schedule_blist_save(); ops->update(gaimbuddylist, (GaimBlistNode *)buddy);
@@ -423,7 +416,7 @@
+ gaim_schedule_blist_save(); ops->update(gaimbuddylist, (GaimBlistNode *)chat);
@@ -442,7 +435,7 @@
+ gaim_schedule_blist_save(); ops->update(gaimbuddylist, (GaimBlistNode *)buddy);
@@ -465,7 +458,7 @@
buddy->server_alias = NULL;
+ gaim_schedule_blist_save(); ops->update(gaimbuddylist, (GaimBlistNode *)buddy);
@@ -548,7 +541,7 @@
+ gaim_schedule_blist_save(); @@ -654,7 +647,7 @@
gaim_blist_node_remove_setting((GaimBlistNode *)buddy, "buddy_icon");
+ gaim_schedule_blist_save(); gaim_blist_update_buddy_icon(buddy);
@@ -707,7 +700,7 @@
ops->remove(gaimbuddylist, cnode);
+ gaim_schedule_blist_save(); @@ -736,7 +729,7 @@
+ gaim_schedule_blist_save(); ops->update(gaimbuddylist, (GaimBlistNode *)cnode);
@@ -808,7 +801,7 @@
ops->remove(gaimbuddylist, bnode);
+ gaim_schedule_blist_save(); if (bnode->parent->parent != (GaimBlistNode*)g) {
hb = g_new(struct _gaim_hbuddy, 1);
@@ -865,7 +858,7 @@
gaim_contact_compute_priority_buddy(gaim_buddy_get_contact(buddy));
+ gaim_schedule_blist_save(); ops->update(gaimbuddylist, (GaimBlistNode*)buddy);
@@ -902,7 +895,7 @@
+ gaim_schedule_blist_save(); ops->update(gaimbuddylist, (GaimBlistNode*)contact);
@@ -1045,7 +1038,7 @@
ops->remove(gaimbuddylist, cnode);
+ gaim_schedule_blist_save(); if (node && (GAIM_BLIST_NODE_IS_CONTACT(node) ||
@@ -1071,7 +1064,7 @@
+ gaim_schedule_blist_save(); ops->update(gaimbuddylist, cnode);
@@ -1162,7 +1155,7 @@
gaimbuddylist->root = gnode;
+ gaim_schedule_blist_save(); if (ops && ops->update) {
ops->update(gaimbuddylist, gnode);
@@ -1205,7 +1198,7 @@
node->next->prev = node->prev;
+ gaim_schedule_blist_save(); @@ -1254,7 +1247,7 @@
+ gaim_schedule_blist_save(); /* Re-sort the contact */
if (contact->priority == buddy) {
@@ -1317,7 +1310,7 @@
+ gaim_schedule_blist_save(); @@ -1371,7 +1364,7 @@
node->next->prev = node->prev;
+ gaim_schedule_blist_save(); @@ -2438,6 +2431,13 @@
+gaim_schedule_blist_save() + if (blist_save_timer != 0) + gaim_timeout_remove(blist_save_timer); + blist_save_timer = gaim_timeout_add(1000, blist_save_callback, NULL); static void gaim_blist_node_setting_free(struct gaim_blist_node_setting *setting)
@@ -2469,7 +2469,7 @@
g_hash_table_remove(node->settings, key);
+ gaim_schedule_blist_save(); @@ -2487,7 +2487,7 @@
g_hash_table_replace(node->settings, g_strdup(key), setting);
+ gaim_schedule_blist_save(); gboolean gaim_blist_node_get_bool(GaimBlistNode* node, const char *key)
@@ -2522,7 +2522,7 @@
g_hash_table_replace(node->settings, g_strdup(key), setting);
+ gaim_schedule_blist_save(); int gaim_blist_node_get_int(GaimBlistNode* node, const char *key)
@@ -2558,7 +2558,7 @@
g_hash_table_replace(node->settings, g_strdup(key), setting);
+ gaim_schedule_blist_save(); const char *gaim_blist_node_get_string(GaimBlistNode* node, const char *key)