im.pidgin.pidgin.next.minor: f1ab08a73da060b70682381eef7e04788cf7aa8e

sadrul at pidgin.im sadrul at pidgin.im
Tue Oct 30 05:50:41 EDT 2007


-----------------------------------------------------------------
Revision: f1ab08a73da060b70682381eef7e04788cf7aa8e
Ancestor: 7c8efa331cb72c5003bca0812e060eb26e3e0c70
Author: sadrul at pidgin.im
Date: 2007-10-30T09:17:50
Branch: im.pidgin.pidgin.next.minor

Modified files:
        finch/libgnt/gnttree.c

ChangeLog: 

Do not do unnecessary processing when updating text in a column.

-------------- next part --------------
============================================================
--- finch/libgnt/gnttree.c	92e969903987cedcf12bb7eaa407a0c491fc9231
+++ finch/libgnt/gnttree.c	31d2ecb4645428da0ac249e85ad20c5b00de1faa
@@ -1492,7 +1492,8 @@ void gnt_tree_change_text(GntTree *tree,
 			col->text = g_strdup(text ? text : "");
 		}
 
-		if (get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0)
+		if (GNT_WIDGET_IS_FLAG_SET(GNT_WIDGET(tree), GNT_WIDGET_MAPPED) &&
+			get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0)
 			redraw_tree(tree);
 	}
 }


More information about the Commits mailing list