subscriber-view: add an autoptr cleanup function
So that we can use G_DECLARE_{FINAL,DERIVABLE}_TYPE() utility macros.
This commit is contained in:
@@ -60,6 +60,8 @@ struct _GcalSubscriberViewClass
|
|||||||
GtkWidget* (*get_child_by_uuid) (GcalSubscriberView *subscriber_view, const gchar *uuid);
|
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);
|
GType gcal_subscriber_view_get_type (void);
|
||||||
|
|
||||||
GtkWidget* gcal_subscriber_view_get_child_by_uuid (GcalSubscriberView *subscriber_view,
|
GtkWidget* gcal_subscriber_view_get_child_by_uuid (GcalSubscriberView *subscriber_view,
|
||||||
|
|||||||
Reference in New Issue
Block a user