Code review comment for lp:~kamstrup/dee/signal-by-id

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

I'd assume we could use it in class_init() just fine.

It rests on the assumption that GObject works like this: When
instantiating a DeeSequenceModel for the first time glib first looks
up all the GTypes involved to figure out the hierarchy. Then it call
class_init()s from the top of the inheritance tree (imagine a memcpy()
on the class struct in between each step) like GObject.class_init(),
DeeModel.iface_init(), DeeSerializableModel.class_init(), and lastly

If the parent class/ifaces are not fully initialized when entering
class_init() of the children all sorts of things would go b0rkedI

« Back to merge proposal