gobjectification: 0d3bc7b8: Use accessor functions instead of peekin...

qulogic at pidgin.im qulogic at pidgin.im
Sun Nov 8 03:30:57 EST 2009


-----------------------------------------------------------------
Revision: 0d3bc7b89ef74c2ea22de5a6607b89b0bdf6a0bb
Ancestor: 755874db8d1e4b05ced37142deecd321ea02121b
Author: qulogic at pidgin.im
Date: 2009-11-08T07:58:46
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/0d3bc7b89ef74c2ea22de5a6607b89b0bdf6a0bb

Modified files:
        pidgin/gtkutils.c

ChangeLog: 

Use accessor functions instead of peeking the struct.

-------------- next part --------------
============================================================
--- pidgin/gtkutils.c	b1cddc4b71180ca546021660c7c3ed13177dffc6
+++ pidgin/gtkutils.c	6303960f25be21f0feb2fe742e15cc870b771224
@@ -2179,7 +2179,7 @@ add_completion_list(PidginCompletionData
 				if (filter_func(&entry, user_data)) {
 #ifdef NEW_STYLE_COMPLETION
 					add_buddyname_autocomplete_entry(data->store,
-														((PurpleContact *)cnode)->alias,
+														purple_contact_get_alias(PURPLE_CONTACT(cnode)),
 														purple_buddy_get_contact_alias(entry.entry.buddy),
 														purple_buddy_get_account(entry.entry.buddy),
 														purple_buddy_get_name(entry.entry.buddy)


More information about the Commits mailing list