[gnome-panel/gnome-3-22] libpanel-applet: add autocleanup function



commit d6b7f44161be8c0bdbe994ce249c86f6d58840e8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Oct 13 22:05:02 2016 +0300

    libpanel-applet: add autocleanup function

 libpanel-applet/panel-applet.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libpanel-applet/panel-applet.h b/libpanel-applet/panel-applet.h
index e41989d..94d61cc 100644
--- a/libpanel-applet/panel-applet.h
+++ b/libpanel-applet/panel-applet.h
@@ -109,6 +109,8 @@ typedef struct _PanelApplet        PanelApplet;
 typedef struct _PanelAppletClass   PanelAppletClass;
 typedef struct _PanelAppletPrivate PanelAppletPrivate;
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (PanelApplet, g_object_unref)
+
 /**
  * PanelAppletFactoryCallback:
  * @applet: a newly-created #PanelApplet.


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