[nautilus/wip/csoriano/flow: 50/55] canvas-view-container: provide autoptr cleanup



commit bab0a70a689625f51625b4601c6248279fcb95d6
Author: Carlos Soriano <csoriano gnome org>
Date:   Mon Apr 4 11:42:31 2016 +0200

    canvas-view-container: provide autoptr cleanup
    
    So subclasses can use G_DEFINE_FINAL_TYPE.

 src/nautilus-canvas-view-container.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-canvas-view-container.h b/src/nautilus-canvas-view-container.h
index b7a1cc4..b2ab506 100644
--- a/src/nautilus-canvas-view-container.h
+++ b/src/nautilus-canvas-view-container.h
@@ -42,6 +42,8 @@ typedef struct NautilusCanvasViewContainerClass NautilusCanvasViewContainerClass
 #define NAUTILUS_CANVAS_VIEW_CONTAINER_GET_CLASS(obj) \
   (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_CANVAS_VIEW_CONTAINER, NautilusCanvasViewContainerClass))
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(NautilusCanvasViewContainer, g_object_unref)
+
 typedef struct NautilusCanvasViewContainerDetails NautilusCanvasViewContainerDetails;
 
 struct NautilusCanvasViewContainer {


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