[glib: 1/2] docs: Mention GInitiallyUnowned when introducing refcounts




commit e7f9ae61dcf69c0befdaf9e21d27e366941610b7
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Dec 11 13:15:34 2020 +0000

    docs: Mention GInitiallyUnowned when introducing refcounts
    
    For completeness.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Fixes: #1568

 docs/reference/gobject/tut_gobject.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/docs/reference/gobject/tut_gobject.xml b/docs/reference/gobject/tut_gobject.xml
index d1cb41f71..0423a38a3 100644
--- a/docs/reference/gobject/tut_gobject.xml
+++ b/docs/reference/gobject/tut_gobject.xml
@@ -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 


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