Merge branch '1022-g-object-new-zeros-docs' into 'master'

gobject: Document that g_object_new() zeros out private data

Closes #1022

See merge request GNOME/glib!1586
This commit is contained in:
Sebastian Dröge 2020-07-27 08:09:07 +00:00
commit 87bc87ae69

View File

@ -1745,7 +1745,9 @@ g_object_get_type (void)
* Creates a new instance of a #GObject subtype and sets its properties.
*
* Construction parameters (see #G_PARAM_CONSTRUCT, #G_PARAM_CONSTRUCT_ONLY)
* which are not explicitly specified are set to their default values.
* which are not explicitly specified are set to their default values. Any
* private data for the object is guaranteed to be initialized with zeros, as
* per g_type_create_instance().
*
* Note that in C, small integer types in variable argument lists are promoted
* up to #gint or #guint as appropriate, and read back accordingly. #gint is 32