comparison finch/gntnotify.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 0d4702446530
children 8878ea011fa1
comparison
equal deleted inserted replaced
32367:a686269689fe 32368:6283c0f2b02f
288 GList *l; 288 GList *l;
289 GString *text; 289 GString *text;
290 290
291 text = g_string_new("<span>"); 291 text = g_string_new("<span>");
292 292
293 for (l = purple_notify_user_info_get_entries(user_info); l != NULL; 293 for (l = purple_notify_user_info_get_entries(user_info)->head; l != NULL;
294 l = l->next) { 294 l = l->next) {
295 PurpleNotifyUserInfoEntry *user_info_entry = l->data; 295 PurpleNotifyUserInfoEntry *user_info_entry = l->data;
296 PurpleNotifyUserInfoEntryType type = purple_notify_user_info_entry_get_type(user_info_entry); 296 PurpleNotifyUserInfoEntryType type = purple_notify_user_info_entry_get_type(user_info_entry);
297 const char *label = purple_notify_user_info_entry_get_label(user_info_entry); 297 const char *label = purple_notify_user_info_entry_get_label(user_info_entry);
298 const char *value = purple_notify_user_info_entry_get_value(user_info_entry); 298 const char *value = purple_notify_user_info_entry_get_value(user_info_entry);