pidgin: 26e5b871: Don't access PurpleBuddy->proto_data dir...
andrew.victor at mxit.com
andrew.victor at mxit.com
Tue Aug 23 17:45:58 EDT 2011
----------------------------------------------------------------------
Revision: 26e5b871bbc256c56e36eb87726f3c58a4b8ce2f
Parent: 36efba43ab7aa1f9fc4160cf3829e3eb22e19e18
Author: andrew.victor at mxit.com
Date: 08/23/11 16:48:43
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/26e5b871bbc256c56e36eb87726f3c58a4b8ce2f
Changelog:
Don't access PurpleBuddy->proto_data directly, rather use the accessor functions.
Changes against parent 36efba43ab7aa1f9fc4160cf3829e3eb22e19e18
patched libpurple/protocols/mxit/roster.c
-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/roster.c 1da0c931d13c21c70476622ec98c4e4a6177674d
+++ libpurple/protocols/mxit/roster.c ae6f9c71fb91f9383a7118f6d4a7c7f44bbf6d9e
@@ -312,8 +312,8 @@ static PurpleBuddy* mxit_update_buddy_gr
/* create new buddy */
newbuddy = purple_buddy_new( session->acc, buddy->name, buddy->alias );
- newbuddy->proto_data = buddy->proto_data;
- buddy->proto_data = NULL;
+ purple_buddy_set_protocol_data( newbuddy, purple_buddy_get_protocol_data( buddy ) );
+ purple_buddy_set_protocol_data( buddy, NULL );
/* remove the buddy */
purple_blist_remove_buddy( buddy );
@@ -396,7 +396,7 @@ void mxit_update_contact( struct MXitSes
/* create new buddy */
buddy = purple_buddy_new( session->acc, contact->username, contact->alias );
- purple_buddy_set_protocol_data(buddy, contact);
+ purple_buddy_set_protocol_data( buddy, contact );
/* add new buddy to list */
purple_blist_add_buddy( buddy, NULL, group, NULL );
More information about the Commits
mailing list