[gnome-builder] libide: allow IdeSourceView to be used with g_autoptr()



commit 785914197662095163c2b71f0251e570c5bda967
Author: Christian Hergert <christian hergert me>
Date:   Tue Feb 24 17:45:41 2015 -0800

    libide: allow IdeSourceView to be used with g_autoptr()

 libide/ide-source-view.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-view.h b/libide/ide-source-view.h
index 6cd9095..f1683c1 100644
--- a/libide/ide-source-view.h
+++ b/libide/ide-source-view.h
@@ -34,6 +34,8 @@ G_BEGIN_DECLS
 typedef struct _IdeSourceView      IdeSourceView;
 typedef struct _IdeSourceViewClass IdeSourceViewClass;
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeSourceView, g_object_unref)
+
 struct _IdeSourceView
 {
   GtkSourceView parent;


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