[gtk/gbsneto/filechooser-column-view] filechooserwidget: Connect to items-changed when changing model
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gbsneto/filechooser-column-view] filechooserwidget: Connect to items-changed when changing model
- Date: Tue, 11 Oct 2022 02:19:28 +0000 (UTC)
commit eb23ee7da856ab2a708d7bfc10c264fba499f291
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Oct 10 23:18:00 2022 -0300
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.
gtk/gtkfilechooserwidget.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 6eb8844024..7b3c33e48b 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2526,6 +2526,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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]