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.
This commit is contained in:
Georges Basile Stavracas Neto
2022-10-08 20:12:20 -03:00
committed by Matthias Clasen
parent 1f2561b08e
commit 9c6d5e2ca5
2 changed files with 404 additions and 577 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -387,11 +387,6 @@
<signal name="pressed" handler="click_cb" swapped="no"/>
</object>
</child>
<child internal-child="selection">
<object class="GtkTreeSelection" id="treeview-selection2">
<signal name="changed" handler="list_selection_changed" swapped="no"/>
</object>
</child>
</object>
</child>
</object>