diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-03 15:04:33 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-09-05 21:43:42 -0400 |
commit | dfabe74c593b876f50e56903e6c5f7f11f332781 (patch) | |
tree | d66e52265919a29d0f376f855ac22e30a8593260 /demos/constraint-editor/constraint-view.c | |
parent | 716c7b2f217b9852fa446b4566180ae10f48f618 (diff) | |
download | gtk+-dfabe74c593b876f50e56903e6c5f7f11f332781.tar.gz |
Make filter constructors return exact types
Make functions like gtk_custom_filter_new() return
the actual type they construct.
Update all callers.
Diffstat (limited to 'demos/constraint-editor/constraint-view.c')
-rw-r--r-- | demos/constraint-editor/constraint-view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/constraint-editor/constraint-view.c b/demos/constraint-editor/constraint-view.c index 5c66bf9d41..cc5b11c0f5 100644 --- a/demos/constraint-editor/constraint-view.c +++ b/demos/constraint-editor/constraint-view.c @@ -177,11 +177,11 @@ constraint_view_init (ConstraintView *self) guides = gtk_constraint_layout_observe_guides (GTK_CONSTRAINT_LAYOUT (manager)); all_constraints = gtk_constraint_layout_observe_constraints (GTK_CONSTRAINT_LAYOUT (manager)); - filter = gtk_custom_filter_new (omit_internal, NULL, NULL); + filter = GTK_FILTER (gtk_custom_filter_new (omit_internal, NULL, NULL)); constraints = (GListModel *)gtk_filter_list_model_new (all_constraints, filter); all_children = gtk_widget_observe_children (GTK_WIDGET (self)); - filter = gtk_custom_filter_new (omit_internal, NULL, NULL); + filter = GTK_FILTER (gtk_custom_filter_new (omit_internal, NULL, NULL)); children = (GListModel *)gtk_filter_list_model_new (all_children, filter); list = g_list_store_new (G_TYPE_LIST_MODEL); |