Closed gavr123456789 closed 3 years ago
so far, I have not been able to add FileFilter to your example with Directory List (I rewrote it to nim)
https://discourse.gnome.org/t/how-to-reset-filefilter-and-how-filefilter-add-pattern-works/6996
It's strange, but any pattern other than * gives an empty list.
https://docs.gtk.org/gtk4/class.Filter.html and combine them in https://docs.gtk.org/gtk4/class.MultiFilter.html.
Same with https://docs.gtk.org/gtk4/class.Sorter.html and https://docs.gtk.org/gtk4/class.MultiSorter.html.
I think if someone uses the List API, it is very unlikely that he will not immediately need the ability to add filters and sorting there.
For example, I am currently writing a file browser, and I have not found any examples of sorting or filters for the new List API in GTK 4.