1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-17 07:46:03 +00:00

mm-origin: Chain up to to parent's constructed() early

Not strictly needed here, because we don't depend on the parent being
constructed but this is how it should generally be done.
This commit is contained in:
Evangelos Ribeiro Tzaras 2023-01-18 19:26:11 +01:00
parent 2e43639d03
commit e5780677f6

View file

@ -790,6 +790,8 @@ constructed (GObject *object)
CallsMMOrigin *self = CALLS_MM_ORIGIN (object); CallsMMOrigin *self = CALLS_MM_ORIGIN (object);
MmGdbusModemVoice *gdbus_voice; MmGdbusModemVoice *gdbus_voice;
G_OBJECT_CLASS (calls_mm_origin_parent_class)->constructed (object);
self->name = modem_get_name (mm_object_get_modem (self->mm_obj)); self->name = modem_get_name (mm_object_get_modem (self->mm_obj));
mm_modem_get_sim (mm_object_get_modem (self->mm_obj), mm_modem_get_sim (mm_object_get_modem (self->mm_obj),
@ -815,7 +817,6 @@ constructed (GObject *object)
NULL, NULL,
(GAsyncReadyCallback) list_calls_cb, (GAsyncReadyCallback) list_calls_cb,
self); self);
G_OBJECT_CLASS (calls_mm_origin_parent_class)->constructed (object);
} }