Expand the root nodes by default

svn path=/trunk/; revision=13833
This commit is contained in:
Luis Ontanon 2005-03-20 21:48:11 +00:00
parent cea073ec0b
commit d4f461c418
1 changed files with 10 additions and 0 deletions

View File

@ -159,7 +159,17 @@ static void draw_gtk_tree( void *psp ) {
for (child = st->root.children; child; child = child->next ) {
draw_gtk_node(child);
#if GTK_MAJOR_VERSION >= 2
gtk_tree_view_expand_row(GTK_TREE_VIEW(st->pr->tree),
gtk_tree_model_get_path(GTK_TREE_MODEL(st->pr->store),
child->pr->iter),
FALSE);
#else
gtk_ctree_expand(GTK_CTREE(st->pr->ctree),child->pr->node);
#endif
}
}
void protect_thread_critical_region(void);