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:
@@ -790,6 +790,8 @@ constructed (GObject *object)
|
||||
CallsMMOrigin *self = CALLS_MM_ORIGIN (object);
|
||||
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));
|
||||
|
||||
mm_modem_get_sim (mm_object_get_modem (self->mm_obj),
|
||||
@@ -815,7 +817,6 @@ constructed (GObject *object)
|
||||
NULL,
|
||||
(GAsyncReadyCallback) list_calls_cb,
|
||||
self);
|
||||
G_OBJECT_CLASS (calls_mm_origin_parent_class)->constructed (object);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user