Re: EuGTK:Filtering ListViews

new topic     » goto parent     » topic index » view thread      » older message » newer message

Yes, the GtkTreeModelFilter is what you need - despite the name, it works on both tree models and list models.

And there is an example: https://openeuphoria.org/pastey/310.wc

Although Spock's solution is equally valid. When you need to sort on some combination of situations, doing it with Eu is better. Perhaps you need to sort / filter on some condition like (description contains "drill") and (price sorts low-to-high). You can see how to do that in Eu. May be more work if you use the Gtk filter.

If the filtering criteria is simple, then the Gtk way would be faster for larger amounts of data, since the entire data set is kept in the listview, and only the individual rows' visibility is toggled on/off.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu