changeset 25820:43aeab2bb50e

A totally untested struct hiding fix.
author Richard Laager <rlaager@wiktel.com>
date Mon, 03 Nov 2008 02:30:38 +0000
parents 4210d8eb1708
children 2b8c85f74ede
files pidgin/gtkblist.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sun Nov 02 23:02:42 2008 +0000
+++ b/pidgin/gtkblist.c	Mon Nov 03 02:30:38 2008 +0000
@@ -512,9 +512,11 @@
 	int i = 0;
 	char *a = g_utf8_casefold(alias, -1);
 
-	for (contact = group->child; contact; contact = contact->next) {
+	for (contact = purple_blist_node_get_first_child(group);
+	     contact != NULL;
+	     contact = purple_blist_node_get_sibling_next(contact)) {
 		char *node_alias;
-		if (contact->type != PURPLE_BLIST_CONTACT_NODE)
+		if (purple_blist_node_get_type(contact) != PURPLE_BLIST_CONTACT_NODE)
 			continue;
 
 		node_alias = g_utf8_casefold(purple_contact_get_alias((PurpleContact *)contact), -1);