From cf1b0c9604276f696bb10fc71a404f21b25bb588 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 26 Jun 2023 15:32:16 -0700 Subject: [PATCH] libsysprof-gtk: make chaining up work w/o checking for NULL --- src/libsysprof-gtk/sysprof-series.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/libsysprof-gtk/sysprof-series.c b/src/libsysprof-gtk/sysprof-series.c index b71323ee..695736d3 100644 --- a/src/libsysprof-gtk/sysprof-series.c +++ b/src/libsysprof-gtk/sysprof-series.c @@ -87,12 +87,20 @@ sysprof_series_items_changed_cb (SysprofSeries *self, g_assert (SYSPROF_IS_SERIES (self)); g_assert (G_IS_LIST_MODEL (model)); - if (SYSPROF_SERIES_GET_CLASS (self)->items_changed) - SYSPROF_SERIES_GET_CLASS (self)->items_changed (self, model, position, removed, added); + SYSPROF_SERIES_GET_CLASS (self)->items_changed (self, model, position, removed, added); g_list_model_items_changed (G_LIST_MODEL (self), position, removed, added); } +static void +sysprof_series_real_items_changed (SysprofSeries *series, + GListModel *model, + guint position, + guint removed, + guint added) +{ +} + static void sysprof_series_dispose (GObject *object) { @@ -161,6 +169,7 @@ sysprof_series_class_init (SysprofSeriesClass *klass) object_class->set_property = sysprof_series_set_property; klass->series_item_type = G_TYPE_OBJECT; + klass->items_changed = sysprof_series_real_items_changed; properties[PROP_MODEL] = g_param_spec_object ("model", NULL, NULL,