GNOME Bugzilla – Bug 754855
Object instantiation documentation refers to example that no longer exists
Last modified: 2015-10-01 14:27:37 UTC
From [1]: "Once g_object_new has obtained a reference to an initialized class structure, it invokes its constructor method to create an instance of the new object. Since it has just been overridden by maman_bar_class_init to maman_bar_constructor..." This is referring to an example that used to exist in the tutorial. The example nowadays shows how to use construted instead of constructor, though, so it doesn't make sense anymore. Something along the lines of: "Once g_object_new has obtained a reference to an initialized class structure, it invokes its constructor method to create an instance of the new object, if it has been overridden by maman_bar_class_init" would make more sense. It would probably also be good to add constructed to the table immediately below.... https://developer.gnome.org/gobject/unstable/chapter-gobject.html
Created attachment 312453 [details] [review] docs: Tidy up GObject construction discussion in the GObject tutorial Remove some outdated references to an old example, and add a row in the table of steps in object initialization for the GObjectClass.constructed virtual method.
Review of attachment 312453 [details] [review]: I only glanced at this but it seems reasonable.
Attachment 312453 [details] pushed as 4a5a30f - docs: Tidy up GObject construction discussion in the GObject tutorial