comparison libpurple/protocols/jabber/buddy.c @ 31909:6283c0f2b02f

Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue. This makes appending fast.
author Mark Doliner <mark@kingant.net>
date Mon, 22 Aug 2011 04:14:16 +0000
parents 99ca503ea087
children 7422716de669
comparison
equal deleted inserted replaced
31908:a686269689fe 31909:6283c0f2b02f
804 804
805 user_info = jbi->user_info; 805 user_info = jbi->user_info;
806 resource_name = jabber_get_resource(jbi->jid); 806 resource_name = jabber_get_resource(jbi->jid);
807 807
808 /* If we have one or more pairs from the vcard, put a section break above it */ 808 /* If we have one or more pairs from the vcard, put a section break above it */
809 if (purple_notify_user_info_get_entries(user_info)) 809 if (g_queue_get_length(purple_notify_user_info_get_entries(user_info)))
810 purple_notify_user_info_prepend_section_break(user_info); 810 purple_notify_user_info_prepend_section_break(user_info);
811 811
812 /* Add the information about the user's resource(s) */ 812 /* Add the information about the user's resource(s) */
813 if (resource_name) { 813 if (resource_name) {
814 jbr = jabber_buddy_find_resource(jbi->jb, resource_name); 814 jbr = jabber_buddy_find_resource(jbi->jb, resource_name);