pidgin: 22cbd3e4: I think this was the optimization they w...

qulogic at pidgin.im qulogic at pidgin.im
Tue Aug 25 21:16:48 EDT 2009


-----------------------------------------------------------------
Revision: 22cbd3e44c758f0db317d5684626ff755de0a07e
Ancestor: 32c5c2d4cfb2bede5ffb66792760a368ba8b9f0a
Author: qulogic at pidgin.im
Date: 2009-08-26T01:09:33
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/22cbd3e44c758f0db317d5684626ff755de0a07e

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

I think this was the optimization they wanted when this first broke.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	5d55c90677d609d596823cbdb86c43ea152bed0c
+++ pidgin/gtkblist.c	b1171234ece9afed00d40a2bd6dab6255c9dec72
@@ -496,12 +496,17 @@ gtk_blist_do_personize(GList *merges)
 	for (tmp = merges; tmp; tmp = tmp->next) {
 		PurpleBlistNode *node = tmp->data;
 		PurpleBlistNode *b;
+		PurpleBlistNodeType type;
 		int i = 0;
 
-		if (purple_blist_node_get_type(node) == PURPLE_BLIST_BUDDY_NODE)
+		type = purple_blist_node_get_type(node);
+
+		if (type == PURPLE_BLIST_BUDDY_NODE) {
 			node = purple_blist_node_get_parent(node);
+			type = purple_blist_node_get_type(node);
+		}
 
-		if (purple_blist_node_get_type(node) != PURPLE_BLIST_CONTACT_NODE)
+		if (type != PURPLE_BLIST_CONTACT_NODE)
 			continue;
 
 		for (b = purple_blist_node_get_first_child(node);


More information about the Commits mailing list