filechooserwidget: Connect to items-changed when changing model

Just like previous commit, we need to call list_items_changed()
even if we change from single selection to multi selection or
vice-versa.
This commit is contained in:
Georges Basile Stavracas Neto 2022-10-10 23:18:00 -03:00 committed by Matthias Clasen
parent 3e4ae62b44
commit 0f503e0ba2

View File

@ -2590,6 +2590,11 @@ set_select_multiple (GtkFileChooserWidget *impl,
G_CALLBACK (list_selection_changed),
impl);
g_signal_connect (impl->selection_model,
"items-changed",
G_CALLBACK (list_items_changed),
impl);
gtk_column_view_set_model (GTK_COLUMN_VIEW (impl->browse_files_column_view),
GTK_SELECTION_MODEL (impl->selection_model));