[gnome-calendar] subscriber-view: add an autoptr cleanup function
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] subscriber-view: add an autoptr cleanup function
- Date: Sat, 1 Oct 2016 22:56:17 +0000 (UTC)
commit a2edfd48b6c8b14e0b69f38a39b81ce0e2b6b3cc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Oct 1 19:54:54 2016 -0300
subscriber-view: add an autoptr cleanup function
So that we can use G_DECLARE_{FINAL,DERIVABLE}_TYPE() utility macros.
src/gcal-subscriber-view.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-subscriber-view.h b/src/gcal-subscriber-view.h
index 6805e76..dda9f35 100644
--- a/src/gcal-subscriber-view.h
+++ b/src/gcal-subscriber-view.h
@@ -60,6 +60,8 @@ struct _GcalSubscriberViewClass
GtkWidget* (*get_child_by_uuid) (GcalSubscriberView *subscriber_view, const gchar *uuid);
};
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GcalSubscriberView, g_object_unref)
+
GType gcal_subscriber_view_get_type (void);
GtkWidget* gcal_subscriber_view_get_child_by_uuid (GcalSubscriberView *subscriber_view,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]