How to expand all items in a GtkTreeView at start
Asked Answered
S

1

9

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 want GtkTreeView showing all items expanded, without clicking the expander to show <code>sd0</code> item

Shearin answered 22/1, 2013 at 6:39 Comment(0)
G
10

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()

Goolsby answered 22/1, 2013 at 6:45 Comment(3)
Thanks! gtk_tree_view_expand_all() is what I need!Shearin
If that answers your question, then should accept the answer :-)Goolsby
I know, but system says I need wait 4 minutes then I can accept the answer..., Thanks!Shearin

© 2022 - 2024 — McMap. All rights reserved.