Mercurial > pidgin
comparison src/blist.c @ 11643:eb14bbcf7249
[gaim-migrate @ 13920]
sf patch #1293063, from John Bailey
Move and rename some functions from server.c to the account API.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 12 Oct 2005 02:47:31 +0000 |
parents | 45d54425dc65 |
children | ec7c3da0e718 |
comparison
equal
deleted
inserted
replaced
11642:58bc500cf226 | 11643:eb14bbcf7249 |
---|---|
1037 for(cur = buddies; cur; cur = cur->next) { | 1037 for(cur = buddies; cur; cur = cur->next) { |
1038 GaimBlistNode *node = (GaimBlistNode *)cur->data; | 1038 GaimBlistNode *node = (GaimBlistNode *)cur->data; |
1039 groups = g_list_append(groups, node->parent->parent); | 1039 groups = g_list_append(groups, node->parent->parent); |
1040 } | 1040 } |
1041 | 1041 |
1042 serv_remove_buddies(account->gc, buddies, groups); | 1042 gaim_account_remove_buddies(account, buddies, groups); |
1043 g_list_free(groups); | 1043 g_list_free(groups); |
1044 serv_add_buddies(account->gc, buddies); | 1044 gaim_account_add_buddies(account, buddies); |
1045 } | 1045 } |
1046 | 1046 |
1047 g_list_free(buddies); | 1047 g_list_free(buddies); |
1048 } | 1048 } |
1049 } | 1049 } |
1518 /* this buddy already exists in the group, so we're | 1518 /* this buddy already exists in the group, so we're |
1519 * gonna delete it instead */ | 1519 * gonna delete it instead */ |
1520 g_free(hb->name); | 1520 g_free(hb->name); |
1521 g_free(hb); | 1521 g_free(hb); |
1522 if (b->account->gc) | 1522 if (b->account->gc) |
1523 serv_remove_buddy(b->account->gc, b, (GaimGroup *)cnode->parent); | 1523 gaim_account_remove_buddy(b->account, b, (GaimGroup *)cnode->parent); |
1524 | 1524 |
1525 if (!cnode->child->next) | 1525 if (!cnode->child->next) |
1526 empty_contact = TRUE; | 1526 empty_contact = TRUE; |
1527 gaim_blist_remove_buddy(b); | 1527 gaim_blist_remove_buddy(b); |
1528 | 1528 |
1892 for (l = gaim_connections_get_all(); l != NULL; l = l->next) | 1892 for (l = gaim_connections_get_all(); l != NULL; l = l->next) |
1893 { | 1893 { |
1894 GaimConnection *gc = (GaimConnection *)l->data; | 1894 GaimConnection *gc = (GaimConnection *)l->data; |
1895 | 1895 |
1896 if (gaim_connection_get_state(gc) == GAIM_CONNECTED) | 1896 if (gaim_connection_get_state(gc) == GAIM_CONNECTED) |
1897 serv_remove_group(gc, group); | 1897 gaim_account_remove_group(gaim_connection_get_account(gc), group); |
1898 } | 1898 } |
1899 | 1899 |
1900 /* Delete the node */ | 1900 /* Delete the node */ |
1901 g_hash_table_destroy(group->node.settings); | 1901 g_hash_table_destroy(group->node.settings); |
1902 g_free(group->name); | 1902 g_free(group->name); |