[gtk/gbsneto/filechooser-column-view: 137/161] filechooserwidget: Connect to the right model
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gbsneto/filechooser-column-view: 137/161] filechooserwidget: Connect to the right model
- Date: Thu, 20 Oct 2022 19:22:27 +0000 (UTC)
commit 58864158cb95db8e8af5aad160d4a07f92b08dba
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Oct 10 23:19:14 2022 -0300
filechooserwidget: Connect to the right model
When recreating the browse_files_model model, connect to that
model's item-changed signal, instead of connecting to the selection
model.
gtk/gtkfilechooserwidget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index a563788b28..9124852fa4 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -4114,7 +4114,7 @@ set_list_model (GtkFileChooserWidget *impl,
g_signal_connect (impl->browse_files_model, "finished-loading",
G_CALLBACK (browse_files_model_finished_loading_cb), impl);
- g_signal_connect (impl->selection_model, "items-changed",
+ g_signal_connect (impl->browse_files_model, "items-changed",
G_CALLBACK (browse_files_model_items_changed_cb), impl);
_gtk_file_system_model_set_filter (impl->browse_files_model, impl->current_filter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]