utils: add autoptr support for ESource

This commit is contained in:
Georges Basile Stavracas Neto
2017-11-08 23:26:25 -02:00
parent 419d581a9d
commit caffb60065
+3
View File
@@ -34,6 +34,9 @@
#define gcal_clear_datetime(dt) g_clear_pointer (dt, g_date_time_unref)
#define gcal_clear_timeout(pp) { if (pp && *pp) { g_source_remove (*pp); *pp = 0; } }
/* Add autoptr support for libecal */
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ESource, g_object_unref)
/**
* GcalWindowViewType:
* @GCAL_WINDOW_VIEW_DAY: Day view (not implemented)