Merge branch '1568-initially-unowned-docs' into 'master'

docs: Mention GInitiallyUnowned when introducing refcounts

Closes #1568

See merge request GNOME/glib!1798
This commit is contained in:
Sebastian Dröge 2020-12-12 20:48:42 +00:00
commit 18f8a8b25f

View File

@ -280,7 +280,7 @@ ViewerFile *file = g_object_new (VIEWER_TYPE_FILE, NULL);
<para>
The reference count is initialized to one by
<function><link linkend="g-object-new">g_object_new</link></function> which means that the caller
is currently the sole owner of the newly-created reference.
is currently the sole owner of the newly-created reference. (If the object is derived from <link linkend="GInitiallyUnowned"><type>GInitiallyUnowned</type></link>, this reference count is <link linkend="floating-ref">floating</link>.)
When the reference count reaches zero, that is,
when <function><link linkend="g-object-unref">g_object_unref</link></function> is called by the last client holding
a reference to the object, the <emphasis>dispose</emphasis> and the