[libgfbgraph/wip/rishi/mr-1: 1/5] album: Support g_autoptr
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgfbgraph/wip/rishi/mr-1: 1/5] album: Support g_autoptr
- Date: Wed, 31 Oct 2018 14:54:27 +0000 (UTC)
commit c45ca5f18353f608f238f539b3b1647127473775
Author: Yi-Soo An <yisooan gmail com>
Date: Tue Jul 24 14:00:25 2018 +0900
album: 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-album.h | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gfbgraph/gfbgraph-album.h b/gfbgraph/gfbgraph-album.h
index 88eb0c2..e0528fb 100644
--- a/gfbgraph/gfbgraph-album.h
+++ b/gfbgraph/gfbgraph-album.h
@@ -36,6 +36,8 @@ typedef struct _GFBGraphAlbum GFBGraphAlbum;
typedef struct _GFBGraphAlbumClass GFBGraphAlbumClass;
typedef struct _GFBGraphAlbumPrivate GFBGraphAlbumPrivate;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFBGraphAlbum, g_object_unref)
+
struct _GFBGraphAlbum {
GFBGraphNode parent;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]