diff options
author | Milan Crha <mcrha@redhat.com> | 2020-01-23 11:08:11 +0100 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2020-01-25 18:40:47 -0500 |
commit | 4ac514ad50dffd67c55f48095e9e39ad941df695 (patch) | |
tree | fbff5458627fdc8bf4d39f98a32c079b6e34f17a /src/libical-glib/i-cal-object.c.in | |
parent | 37f1ec1f8655f07901f8e867545afad7861a573e (diff) | |
download | libical-git-4ac514ad50dffd67c55f48095e9e39ad941df695.tar.gz |
libical-glib: Replace usage of deprecated G_TYPE_INSTANCE_GET_PRIVATE()
Diffstat (limited to 'src/libical-glib/i-cal-object.c.in')
-rw-r--r-- | src/libical-glib/i-cal-object.c.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libical-glib/i-cal-object.c.in b/src/libical-glib/i-cal-object.c.in index 1f593a94..cd37c969 100644 --- a/src/libical-glib/i-cal-object.c.in +++ b/src/libical-glib/i-cal-object.c.in @@ -114,7 +114,7 @@ struct _ICalObjectPrivate GSList *dependers; /* referenced GObject-s */ }; -G_DEFINE_ABSTRACT_TYPE(ICalObject, i_cal_object, G_TYPE_OBJECT) +G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE(ICalObject, i_cal_object, G_TYPE_OBJECT) enum { @@ -213,8 +213,6 @@ static void i_cal_object_class_init(ICalObjectClass * class) { GObjectClass *object_class; - g_type_class_add_private(class, sizeof(ICalObjectPrivate)); - object_class = G_OBJECT_CLASS(class); object_class->set_property = i_cal_object_set_property; object_class->get_property = i_cal_object_get_property; @@ -289,7 +287,7 @@ static void i_cal_object_class_init(ICalObjectClass * class) static void i_cal_object_init(ICalObject *iobject) { - iobject->priv = G_TYPE_INSTANCE_GET_PRIVATE(iobject, I_CAL_TYPE_OBJECT, ICalObjectPrivate); + iobject->priv = i_cal_object_get_instance_private(iobject); g_mutex_init(&iobject->priv->props_lock); } |