[libgfbgraph/wip/rishi/mr-1: 4/5] user: Support g_autoptr



commit 1e3b3bbab508360302c1fb056157d07f221ef85a
Author: Yi-Soo An <yisooan gmail com>
Date:   Tue Jul 24 14:04:37 2018 +0900

    user: Support g_autoptr
    
    The presence of a priv pointer prevents the use of
    G_DECLARE_DERIVABLE_TYPE.
    
    https://gitlab.gnome.org/GNOME/libgfbgraph/merge_requests/1

 gfbgraph/gfbgraph-user.h | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gfbgraph/gfbgraph-user.h b/gfbgraph/gfbgraph-user.h
index 722d366..312b1f0 100644
--- a/gfbgraph/gfbgraph-user.h
+++ b/gfbgraph/gfbgraph-user.h
@@ -38,6 +38,8 @@ typedef struct _GFBGraphUser      GFBGraphUser;
 typedef struct _GFBGraphUserClass GFBGraphUserClass;
 typedef struct _GFBGraphUserPrivate         GFBGraphUserPrivate;
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFBGraphUser, g_object_unref)
+
 struct _GFBGraphUser {
         GFBGraphNode parent;
 


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