[libgfbgraph/wip/rishi/mr-1: 3/5] photo: Support g_autoptr



commit e94f6b04dd8800296a6a465677d95f6aec040104
Author: Yi-Soo An <yisooan gmail com>
Date:   Tue Jul 24 14:02:40 2018 +0900

    photo: 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-photo.h | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gfbgraph/gfbgraph-photo.h b/gfbgraph/gfbgraph-photo.h
index c0d7549..15932e7 100644
--- a/gfbgraph/gfbgraph-photo.h
+++ b/gfbgraph/gfbgraph-photo.h
@@ -36,6 +36,8 @@ typedef struct _GFBGraphPhoto        GFBGraphPhoto;
 typedef struct _GFBGraphPhotoClass   GFBGraphPhotoClass;
 typedef struct _GFBGraphPhotoPrivate GFBGraphPhotoPrivate;
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFBGraphPhoto, g_object_unref)
+
 struct _GFBGraphPhoto {
         GFBGraphNode parent;
 


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