diff finch/libgnt/gnttree.c @ 21283:406aa3be6b32

Minor adjustments to prevent a crash, correct a data type and fix drawing.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 10 Nov 2007 01:18:15 +0000
parents 6e666ae6f68e
children 3ed9b027479d
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c	Fri Nov 09 01:45:10 2007 +0000
+++ b/finch/libgnt/gnttree.c	Sat Nov 10 01:18:15 2007 +0000
@@ -1777,7 +1777,8 @@
 					break;
 			}
 	}
-	readjust_columns(tree);
+	if (GNT_WIDGET_IS_FLAG_SET(GNT_WIDGET(tree), GNT_WIDGET_MAPPED))
+		readjust_columns(tree);
 }
 
 void gnt_tree_set_column_resizable(GntTree *tree, int col, gboolean res)