[glade] GladeWidget: add support for g_autoptr
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] GladeWidget: add support for g_autoptr
- Date: Fri, 7 Aug 2020 16:08:02 +0000 (UTC)
commit 032124d2149b79ce94c8f01869dffa11395f68b7
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Fri Aug 7 11:50:10 2020 -0300
GladeWidget: add support for g_autoptr
gladeui/glade-widget.h | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gladeui/glade-widget.h b/gladeui/glade-widget.h
index 7892ad9d5..d1a2d3767 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]