diff finch/gntrequest.c @ 22212:6bb29f94862c

Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 26 Jan 2008 20:32:26 +0000
parents 6ab421173406
children ad357ca94de9
line wrap: on
line diff
--- a/finch/gntrequest.c	Sat Jan 26 20:28:35 2008 +0000
+++ b/finch/gntrequest.c	Sat Jan 26 20:32:26 2008 +0000
@@ -424,7 +424,8 @@
 			*screenname = entry;
 	} else if (hint && !strcmp(hint, "group")) {
 		PurpleBlistNode *node;
-		for (node = purple_blist_get_root(); node; node = node->next) {
+		for (node = purple_blist_get_root(); node;
+				node = purple_blist_node_get_sibling_next(node)) {
 			if (PURPLE_BLIST_NODE_IS_GROUP(node))
 				gnt_entry_add_suggest(GNT_ENTRY(entry), ((PurpleGroup *)node)->name);
 		}