[gtk/columnview-separators: 28/30] settings demo: Don't select rows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/columnview-separators: 28/30] settings demo: Don't select rows
- Date: Wed, 3 Jun 2020 21:58:15 +0000 (UTC)
commit ce0dd650d74daaf4e6e48eab8a16a2d1e1a6dec2
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 3 16:56:19 2020 -0400
settings demo: Don't select rows
We want no selection here, so use GtkNoSelection.
demos/gtk-demo/listview_settings.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/listview_settings.c b/demos/gtk-demo/listview_settings.c
index 5bb7a2b8cc..5fcd2d08fa 100644
--- a/demos/gtk-demo/listview_settings.c
+++ b/demos/gtk-demo/listview_settings.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]