Mercurial > pidgin.yaz
comparison src/blist.c @ 9944:e4a27c9aec4c
[gaim-migrate @ 10838]
with much rejoicing, and massive thanks to the efforts of Christian, and
all who have helped him, I present to you the incomplete status
rewrite!
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 03 Sep 2004 21:35:52 +0000 |
parents | 5d8d73c2eebe |
children | ced29c7b396c |
comparison
equal
deleted
inserted
replaced
9943:f8e395a054e2 | 9944:e4a27c9aec4c |
---|---|
1116 } | 1116 } |
1117 } | 1117 } |
1118 | 1118 |
1119 void gaim_blist_add_group(GaimGroup *group, GaimBlistNode *node) | 1119 void gaim_blist_add_group(GaimGroup *group, GaimBlistNode *node) |
1120 { | 1120 { |
1121 #if 0 | |
1121 GaimBlistUiOps *ops; | 1122 GaimBlistUiOps *ops; |
1122 GaimBlistNode *gnode = (GaimBlistNode*)group; | 1123 GaimBlistNode *gnode = (GaimBlistNode*)group; |
1123 | 1124 |
1124 g_return_if_fail(group != NULL); | 1125 g_return_if_fail(group != NULL); |
1125 g_return_if_fail(GAIM_BLIST_NODE_IS_GROUP((GaimBlistNode *)group)); | 1126 g_return_if_fail(GAIM_BLIST_NODE_IS_GROUP((GaimBlistNode *)group)); |
1270 if (buddy->timer > 0) | 1271 if (buddy->timer > 0) |
1271 gaim_timeout_remove(buddy->timer); | 1272 gaim_timeout_remove(buddy->timer); |
1272 if (buddy->icon != NULL) | 1273 if (buddy->icon != NULL) |
1273 gaim_buddy_icon_unref(buddy->icon); | 1274 gaim_buddy_icon_unref(buddy->icon); |
1274 g_hash_table_destroy(buddy->node.settings); | 1275 g_hash_table_destroy(buddy->node.settings); |
1276 gaim_presence_remove_buddy(buddy->presence, buddy); | |
1277 gaim_presence_destroy(buddy->presence); | |
1275 g_free(buddy->name); | 1278 g_free(buddy->name); |
1276 g_free(buddy->alias); | 1279 g_free(buddy->alias); |
1277 g_free(buddy); | 1280 g_free(buddy); |
1278 | 1281 |
1279 /* If the contact is empty then remove it */ | 1282 /* If the contact is empty then remove it */ |
1726 ((GaimGroup*)gnode)->currentsize--; | 1729 ((GaimGroup*)gnode)->currentsize--; |
1727 | 1730 |
1728 ((GaimBuddy*)bnode)->present = GAIM_BUDDY_OFFLINE; | 1731 ((GaimBuddy*)bnode)->present = GAIM_BUDDY_OFFLINE; |
1729 | 1732 |
1730 ((GaimBuddy*)bnode)->uc = 0; | 1733 ((GaimBuddy*)bnode)->uc = 0; |
1731 ((GaimBuddy*)bnode)->idle = 0; | 1734 /* XXX ((GaimBuddy*)bnode)->idle = 0; */ |
1732 ((GaimBuddy*)bnode)->evil = 0; | |
1733 | 1735 |
1734 | 1736 |
1735 if (ops && ops->remove) | 1737 if (ops && ops->remove) |
1736 ops->remove(gaimbuddylist, bnode); | 1738 ops->remove(gaimbuddylist, bnode); |
1737 } | 1739 } |