summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi-Soo An <yisooan@gmail.com>2018-07-24 14:02:40 +0900
committerDebarshi Ray <debarshir@gnome.org>2018-10-31 15:40:58 +0100
commite94f6b04dd8800296a6a465677d95f6aec040104 (patch)
treea3350244f12c7a77c81118c2d9c4ee3937cdbd8b
parent8323ad19ca3af72899cbd93a498e94460fa90376 (diff)
downloadlibgfbgraph-e94f6b04dd8800296a6a465677d95f6aec040104.tar.gz
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
-rw-r--r--gfbgraph/gfbgraph-photo.h2
1 files changed, 2 insertions, 0 deletions
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;