diff pidgin/gtklog.c @ 25308:673abaf19f6e

Another small struct hiding change.
author Richard Laager <rlaager@wiktel.com>
date Sun, 02 Nov 2008 21:54:52 +0000
parents 2e179c60f8c9
children 6e1967b0f90b
line wrap: on
line diff
--- a/pidgin/gtklog.c	Sun Nov 02 21:24:23 2008 +0000
+++ b/pidgin/gtklog.c	Sun Nov 02 21:54:52 2008 +0000
@@ -763,12 +763,16 @@
 	for (child = purple_blist_node_get_first_child((PurpleBlistNode*)contact) ;
 	     child != NULL ;
 	     child = purple_blist_node_get_sibling_next(child)) {
+		const char *buddy_name;
+		PurpleAccount *account;
+
 		if (!PURPLE_BLIST_NODE_IS_BUDDY(child))
 			continue;
 
-		logs = g_list_concat(purple_log_get_logs(PURPLE_LOG_IM, ((PurpleBuddy *)child)->name,
-						((PurpleBuddy *)child)->account), logs);
-		total_log_size += purple_log_get_total_size(PURPLE_LOG_IM, ((PurpleBuddy *)child)->name, ((PurpleBuddy *)child)->account);
+		buddy_name = purple_buddy_get_name((PurpleBuddy *)child);
+		account = purple_buddy_get_account((PurpleBuddy *)child);
+		logs = g_list_concat(purple_log_get_logs(PURPLE_LOG_IM, buddy_name, account), logs);
+		total_log_size += purple_log_get_total_size(PURPLE_LOG_IM, buddy_name, account);
 	}
 	logs = g_list_sort(logs, purple_log_compare);