Make the top-level node start out expanded in GTK+ 1.2[.x].

svn path=/trunk/; revision=13829
This commit is contained in:
Guy Harris 2005-03-20 19:44:19 +00:00
parent 0af4492612
commit e859032069
1 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,6 @@
TODO:
- make GTK+ 1.2[.x] implementation columns autoresize
- make top-level node in GTK+ 1.2[.x] implementation start out open
*/
@ -123,6 +122,11 @@ static void setup_gtk_node_pr(stat_node* node) {
text[0] = node->name;
node->pr->node = gtk_ctree_insert_node(GTK_CTREE(node->st->pr->ctree),
parent, NULL, text, 0, NULL, NULL, NULL, NULL, FALSE, FALSE);
if (!parent) {
/* Force the root node to be expanded. */
gtk_ctree_expand(GTK_CTREE(node->st->pr->ctree),
node->pr->node);
}
}
#endif
}