Re: Arguments in GObject-based object constructor



Jacob Kroon wrote:
[...]
What does it mean by "delay initialization completion until the property is set" ?

You can override the "constructor" in your class_init function

see: le-hacker.org/papers/gobject/

and read about the constructor, it is important that you chain up
to the real gobject constructor in your constructor, after the
real constructor returns, your my_instance_init() function will
have been called and all construct properties will have been
applied.

Cheers,
                        -Tristan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]