Mercurial > pidgin
comparison finch/gntlog.c @ 25874:367b3ddcf5c3
propagate from branch 'im.pidgin.pidgin' (head 81aa401ac9855c99eb55a7cf91fa221860dee220)
to branch 'im.pidgin.pidgin.next.minor' (head cf7b71a77c33c3e1d2f392c46d090fb936eb47b7)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 08 Dec 2008 17:57:09 +0000 |
parents | 53c27ca1bb71 |
children | 6e1967b0f90b |
comparison
equal
deleted
inserted
replaced
24705:6f41450584a7 | 25874:367b3ddcf5c3 |
---|---|
456 return; | 456 return; |
457 } | 457 } |
458 | 458 |
459 for (child = purple_blist_node_get_first_child((PurpleBlistNode*)contact); child; | 459 for (child = purple_blist_node_get_first_child((PurpleBlistNode*)contact); child; |
460 child = purple_blist_node_get_sibling_next(child)) { | 460 child = purple_blist_node_get_sibling_next(child)) { |
461 const char *name; | |
462 PurpleAccount *account; | |
461 if (!PURPLE_BLIST_NODE_IS_BUDDY(child)) | 463 if (!PURPLE_BLIST_NODE_IS_BUDDY(child)) |
462 continue; | 464 continue; |
463 | 465 |
464 logs = g_list_concat(purple_log_get_logs(PURPLE_LOG_IM, ((PurpleBuddy *)child)->name, | 466 name = purple_buddy_get_name((PurpleBuddy *)child); |
465 ((PurpleBuddy *)child)->account), logs); | 467 account = purple_buddy_get_account((PurpleBuddy *)child); |
466 total_log_size += purple_log_get_total_size(PURPLE_LOG_IM, ((PurpleBuddy *)child)->name, ((PurpleBuddy *)child)->account); | 468 logs = g_list_concat(purple_log_get_logs(PURPLE_LOG_IM, name, |
469 account), logs); | |
470 total_log_size += purple_log_get_total_size(PURPLE_LOG_IM, name, account); | |
467 } | 471 } |
468 logs = g_list_sort(logs, purple_log_compare); | 472 logs = g_list_sort(logs, purple_log_compare); |
469 | 473 |
470 name = purple_contact_get_alias(contact); | 474 name = purple_contact_get_alias(contact); |
471 if (!name) | 475 if (!name) |