[libgfbgraph/wip/rishi/mr-1: 2/5] node: Support g_autoptr



commit 8323ad19ca3af72899cbd93a498e94460fa90376
Author: Yi-Soo An <yisooan gmail com>
Date:   Tue Jul 24 14:01:37 2018 +0900

    node: 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-node.h | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gfbgraph/gfbgraph-node.h b/gfbgraph/gfbgraph-node.h
index 95da121..c177a82 100644
--- a/gfbgraph/gfbgraph-node.h
+++ b/gfbgraph/gfbgraph-node.h
@@ -38,6 +38,8 @@ typedef struct _GFBGraphNode        GFBGraphNode;
 typedef struct _GFBGraphNodeClass   GFBGraphNodeClass;
 typedef struct _GFBGraphNodePrivate GFBGraphNodePrivate;
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFBGraphNode, g_object_unref)
+
 struct _GFBGraphNode {
         GObject parent;
 


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