pidgin: 9287a75e: Fix Bonjour to work with the hidden stru...
rlaager at pidgin.im
rlaager at pidgin.im
Thu Oct 30 01:55:38 EDT 2008
-----------------------------------------------------------------
Revision: 9287a75e196278c66cd6724dc8d30a471a029c27
Ancestor: 72705438ab1c635bd9c55b0eb26637c8bf85ea82
Author: rlaager at pidgin.im
Date: 2008-10-30T05:41:19
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9287a75e196278c66cd6724dc8d30a471a029c27
Modified files:
libpurple/protocols/bonjour/bonjour.c
ChangeLog:
Fix Bonjour to work with the hidden structs, except for proto_data.
-------------- next part --------------
============================================================
--- libpurple/protocols/bonjour/bonjour.c 1219251e75ffb9d3843eb0d9547ba21b71879d86
+++ libpurple/protocols/bonjour/bonjour.c 8c4efa99065cadfeb781b41b9cea3dad06e0e58d
@@ -59,18 +59,18 @@ bonjour_removeallfromlocal(PurpleConnect
return;
/* Go through and remove all buddies that belong to this account */
- for (cnode = ((PurpleBlistNode *) bonjour_group)->child; cnode; cnode = cnodenext) {
- cnodenext = cnode->next;
+ for (cnode = purple_blist_node_get_first_child((PurpleBlistNode *) bonjour_group); cnode; cnode = cnodenext) {
+ cnodenext = purple_blist_node_get_sibling_next(cnode);
if (!PURPLE_BLIST_NODE_IS_CONTACT(cnode))
continue;
- for (bnode = cnode->child; bnode; bnode = bnodenext) {
- bnodenext = bnode->next;
+ for (bnode = purple_blist_node_get_first_child(cnode); bnode; bnode = bnodenext) {
+ bnodenext = purple_blist_node_get_sibling_next(bnode);
if (!PURPLE_BLIST_NODE_IS_BUDDY(bnode))
continue;
buddy = (PurpleBuddy *) bnode;
- if (buddy->account != account)
+ if (purple_buddy_get_account(buddy) != account)
continue;
- purple_prpl_got_user_status(account, buddy->name, "offline", NULL);
+ purple_prpl_got_user_status(account, purple_buddy_get_name(buddy), "offline", NULL);
purple_account_remove_buddy(account, buddy, NULL);
purple_blist_remove_buddy(buddy);
}
More information about the Commits
mailing list