Rework GtkFileSystemModel internally
Even though GtkFileSystemModel has been made less GtkTreeModel-y, it still hasn't reached the ideal GListModel state. I imagine we'd need the following combination of models to achieve the current behavior:
- GtkFilterListModel (filters hidden files, folders, custom GtkFileFilter)
- GtkFlattenListModel
- GtkDirectoryList (if created with
_gtk_file_system_model_new_for_directory
) - GListStore (for files added with
_gtk_file_system_model_add_and_query_files
)
- GtkDirectoryList (if created with
- GtkFlattenListModel
Have I missed anything?
Arguably we could change the behavior of GtkFileSystemModel too, which would lead to a different set of models.