g_object_new Should Mention That it Zeroes Out Private Struct
Submitted by Kurt von Laven
Link to original bug (#747147)
Description
https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html#g-object-new
g_object_new initializes members of the relevant private struct to all zeroes (c.f., https://git.gnome.org/browse/glib/tree/gobject/gtype.c#n1782). This is a nice property because it means that you don't have to make an init method just to set a lot of values to NULL, 0, FALSE, etc. The documentation mentions that construction parameters are set to their default values, and it should also mention that the relevant private struct is initialized to all zeroes.
Version: 2.44.x