summaryrefslogtreecommitdiff
path: root/gtk/gtkdropdown.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-16 16:16:02 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-17 07:35:09 -0400
commita9c7f94e04207d95c0ff1f18f37477dab440d353 (patch)
tree69d151a4a9fd5f8592d245dcff4dc1f4bf20289c /gtk/gtkdropdown.c
parent31bb969cce30f30121d5b03730417aa41ae2e4b9 (diff)
downloadgtk+-view-model-selection.tar.gz
Change list widget to use a GtkSelectionModelview-model-selection
Change the type of the model property in GtkListView, GtkColumnView and GtkGridView to be GtkSelectionModel. The convenience of automatic interposition of a selection model is minor, compared to the confusion. Update all callers.
Diffstat (limited to 'gtk/gtkdropdown.c')
-rw-r--r--gtk/gtkdropdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkdropdown.c b/gtk/gtkdropdown.c
index de1ba763cb..087dffc5e9 100644
--- a/gtk/gtkdropdown.c
+++ b/gtk/gtkdropdown.c
@@ -673,7 +673,7 @@ gtk_drop_down_set_model (GtkDropDown *self,
selection = G_LIST_MODEL (gtk_single_selection_new (filter_model));
g_set_object (&self->popup_selection, selection);
- gtk_list_view_set_model (GTK_LIST_VIEW (self->popup_list), selection);
+ gtk_list_view_set_model (GTK_LIST_VIEW (self->popup_list), GTK_SELECTION_MODEL (selection));
g_object_unref (selection);
selection = G_LIST_MODEL (gtk_single_selection_new (model));