settings demo: Don't select rows

We want no selection here, so use GtkNoSelection.
This commit is contained in:
Matthias Clasen 2020-06-03 16:56:19 -04:00
parent 77b65ada4f
commit ce0dd650d7

View File

@ -165,6 +165,7 @@ transform_settings_to_keys (GBinding *binding,
GtkSortListModel *sort_model;
GtkFilterListModel *filter_model;
GtkFilter *filter;
GtkNoSelection *selection_model;
GtkExpression *expression;
char **keys;
guint i;
@ -207,7 +208,10 @@ transform_settings_to_keys (GBinding *binding,
g_object_unref (filter);
g_value_take_object (to_value, filter_model);
selection_model = gtk_no_selection_new (G_LIST_MODEL (filter_model));
g_object_unref (filter_model);
g_value_take_object (to_value, selection_model);
return TRUE;
}