Re: Displaying children in a gtk.TreeModelFilter


> As I consequence, I'm currently looking for a way to display children that
> have an hidden parent. That children would be displayed at the root.
> For example :
> a
> --> b
> ------->c
> ---------->d
>  (d is child of c which is child of b which is child of b)
> if b is not visible, my tree would display :
> a
> c
> -->d

You're basically trying to reparent some of the entries inside your
model, but GtkTreeModelFilter cannot do that. It can transform data in
source model and present it in modified form and it can filter out
some of entries. Basically, filter can modify data's appearance on a basis, but it has no influence on your data relations.

I wrote a series of blog posts about filtering some time ago[1].
Samples are written in C, but you may still find it useful.



Tadej Borovšak
tadeboro gmail com
tadej borovsak gmail com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]