filechooserwidget: Use GtkSelectionModel for selection
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 8 Oct 2022 23:12:20 +0000 (20:12 -0300)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2022 02:34:40 +0000 (22:34 -0400)
commit9c6d5e2ca573d30e471c2a6ce952eb11f431a853
tree7674045ce8d9eee6defa0eb256137c0b77270770
parent1f2561b08eb8a4cb10a79e2ba1b8f48d8214e779
filechooserwidget: Use GtkSelectionModel for selection

So far, GtkFileChooserWidget has relied on GtkTreeView's selection
management. This commit moves it away from GtkTreeView, and that's
a massive surgery - sorry :(

The most important aspect of this commit is that 'selection_model'
is now the main model we deal with. Changing between directories,
recent files, and search, all sets the selection_model's model.

Selections are entirely handled by GtkSelectionModel now.
gtk/gtkfilechooserwidget.c
gtk/ui/gtkfilechooserwidget.ui