(simpler approach, but I guess this is visually _very ugly_ and
> counterintuitive for the user).
>
> In any case, I wouldn't want a row to change its appearance...
>
> So, what is the best option between the current behaviour and the "show
> all parents" (the first I presented)? I guess there is no general
> answer, but that the current is more intuitive for the programmer, and
> it is easier to workaround it if you need to (I guess that's what
> seahorse does, for instance).
>
> Still, a convenience method to switch from the current behaviour to the
> "show all parents" one would be a nice feature.
>


The more I'm thinking about, the more I'm scratching my head. In fact, as
soon as you are using TreeModel with children, I cannot find any usecase
were filters could be useful in their current shape.

Take for example a list of emails nested by convestation (gmail-like). If
you do a search, you don't want a mail to be hidden if it matches the search
but the parent is not. There should be some usecase were the current
behaviour is useful but I fail to find one.


I've tried to take the problem in every possible way but I don't find any
solution to not hide children with an hidden parent. All the examples I
could find on the web are always for flat list. I suspect that the
documentation is also written with flat lists in mind.


So, here's my question : how can you use filter with TreeModel if you are
not flat ? Please don't tell me to rewrite my TreeModel. It's exactly what I
wanted to avoid when I started this refactorisation : use GTK as it should
be, separating the model from the view.

Thanks in advance,

Lionel

PS : this problem is really driving me crazy. I'm trying everything. I've
even thought about making multiple filter with every child with an hidden
parent being a VirtualRoot but I just don't find a solution.
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to