Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to expand all items in a GtkTreeView at start

Can any one tell me how to set tree view attribute so that all tree items can show up by default?

The first image shows what I get and the second image shows what I would like to get automatically, that is, to expand the GtkTreeView without clicking the expander.

GtkTreeView without expanding the items, not what I wantGtkTreeView showing all items expanded, without clicking the expander to show <code>sd0</code> item

like image 835
YS Wang Avatar asked Jan 22 '13 06:01

YS Wang


1 Answers

You have not specified the language. In C, you should call gtk_tree_view_expand_all(). In Python you should call my_tree.expand_all()

like image 151
gpoo Avatar answered Nov 03 '22 12:11

gpoo