diff libpurple/protocols/jabber/buddy.c @ 32368: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
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Mon Aug 22 03:40:04 2011 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Mon Aug 22 04:14:16 2011 +0000
@@ -806,7 +806,7 @@
 	resource_name = jabber_get_resource(jbi->jid);
 
 	/* If we have one or more pairs from the vcard, put a section break above it */
-	if (purple_notify_user_info_get_entries(user_info))
+	if (g_queue_get_length(purple_notify_user_info_get_entries(user_info)))
 		purple_notify_user_info_prepend_section_break(user_info);
 
 	/* Add the information about the user's resource(s) */