mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-gtk: make chaining up work w/o checking for NULL
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user