<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
(simpler approach, but I guess this is visually _very ugly_ and<br>
counterintuitive for the user).<br>
<br>
In any case, I wouldn&#39;t want a row to change its appearance...<br>
<br>
So, what is the best option between the current behaviour and the &quot;show<br>
all parents&quot; (the first I presented)? I guess there is no general<br>
answer, but that the current is more intuitive for the programmer, and<br>
it is easier to workaround it if you need to (I guess that&#39;s what<br>
seahorse does, for instance).<br>
<br>
Still, a convenience method to switch from the current behaviour to the<br>
&quot;show all parents&quot; one would be a nice feature.<br></blockquote><div><br></div><div><br></div><div>The more I&#39;m thinking about, the more I&#39;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.</div>
<div><br></div><div>Take for example a list of emails nested by convestation (gmail-like). If you do a search, you don&#39;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.</div>
<div><br></div><div><br></div><div>I&#39;ve tried to take the problem in every possible way but I don&#39;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.</div>
<div><br></div><div><br></div><div>So, here&#39;s my question : how can you use filter with TreeModel if you are not flat ? Please don&#39;t tell me to rewrite my TreeModel. It&#39;s exactly what I wanted to avoid when I started this refactorisation : use GTK as it should be, separating the model from the view.</div>
<div><br></div><div>Thanks in advance,</div><div><br></div><div>Lionel</div><div><br></div><div>PS : this problem is really driving me crazy. I&#39;m trying everything. I&#39;ve even thought about making multiple filter with every child with an hidden parent being a VirtualRoot but I just don&#39;t find a solution.</div>
</div><br>