summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-07-04 21:47:48 +0200
committerBenjamin Otte <otte@redhat.com>2020-07-05 02:59:21 +0200
commit508073072822b83dccf3bc5aa642f488c967de52 (patch)
tree1ab4dd2aaab1ae3a7d1a4485f5dc4d5e9ef26a48 /demos
parentf75a3a0e95b31c84f41acc741d6dfb2028dbe6a2 (diff)
downloadgtk+-508073072822b83dccf3bc5aa642f488c967de52.tar.gz
listmodels: Stop respecting item-type
Simplify all view model APIs and always return G_TYPE_OBJECT as the item-type for every model. It turns out nobody uses item-type anyway. So instead of adding lots of APIs, forcing people to think about it and trying to figure out how to handle filter or map models that modify item types, just having an easy life is a better approach. All the models need to be able to deal with any type of object going through anyway.
Diffstat (limited to 'demos')
-rw-r--r--demos/constraint-editor/constraint-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/constraint-editor/constraint-view.c b/demos/constraint-editor/constraint-view.c
index 76b4acd848..c9d08acab8 100644
--- a/demos/constraint-editor/constraint-view.c
+++ b/demos/constraint-editor/constraint-view.c
@@ -188,7 +188,7 @@ constraint_view_init (ConstraintView *self)
g_list_store_append (list, children);
g_list_store_append (list, guides);
g_list_store_append (list, constraints);
- self->model = G_LIST_MODEL (gtk_flatten_list_model_new (G_TYPE_OBJECT, G_LIST_MODEL (list)));
+ self->model = G_LIST_MODEL (gtk_flatten_list_model_new (G_LIST_MODEL (list)));
g_object_unref (children);
g_object_unref (guides);
g_object_unref (constraints);