summaryrefslogtreecommitdiff
path: root/gladeui
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-08-07 11:50:10 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-08-07 13:07:38 -0300
commit032124d2149b79ce94c8f01869dffa11395f68b7 (patch)
tree02f5fd84d20a326953ae7150f9edfd2f6157a579 /gladeui
parenteca097140dd70665fcc2523694f892630cc7c721 (diff)
downloadglade-032124d2149b79ce94c8f01869dffa11395f68b7.tar.gz
GladeWidget: add support for g_autoptr
Diffstat (limited to 'gladeui')
-rw-r--r--gladeui/glade-widget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gladeui/glade-widget.h b/gladeui/glade-widget.h
index 7892ad9d..d1a2d376 100644
--- a/gladeui/glade-widget.h
+++ b/gladeui/glade-widget.h
@@ -21,6 +21,8 @@ G_BEGIN_DECLS
typedef struct _GladeWidgetClass GladeWidgetClass;
typedef struct _GladeWidgetPrivate GladeWidgetPrivate;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GladeWidget, g_object_unref)
+
struct _GladeWidget
{
GInitiallyUnowned parent_instance;