« Return to Thread: GtkTreeView children missing when filterable and sortable

Re: GtkTreeView children missing when filterable and sortable

by kksou :: Rate this Message:

Reply to Author | View in Thread

Jake Cobb wrote:
The new problem I'm having results from changing to a GtkTreeStore as
the base model.  Now I need parent-child relationships, but with this
configuration (GtkTreeStore/GtkTreeModelFilter/GtkTreeModelSort) no
child nodes ever appear and no expanders are shown for root nodes that
have children.

-Jake Cobb
Please take a look at the following example:
http://www.kksou.com/php-gtk2/articles/display-a-tree-structure-using-GtkTreeStore-with-GtkTreeModelFilter-and-GtkTreeModelSort.php

It uses GtkTreeStore with GtkTreeModelFilter and GtkTreeModelSort.

Is this what you have in mind?

Regards,
/kksou

 « Return to Thread: GtkTreeView children missing when filterable and sortable