[gtk/gbsneto/filechooser-column-view: 48/74] filechooserwidget: Connect to items-changed when changing model
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gbsneto/filechooser-column-view: 48/74] filechooserwidget: Connect to items-changed when changing model
- Date: Fri, 21 Oct 2022 02:40:33 +0000 (UTC)
commit 0f503e0ba289cab5f5bbefbb679bb168c3412fbd
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 ab4273249f..a563788b28 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]