diff options
Diffstat (limited to 'gdata/atom/gdata-category.c')
-rw-r--r-- | gdata/atom/gdata-category.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdata/atom/gdata-category.c b/gdata/atom/gdata-category.c index c02771ce..dcb60102 100644 --- a/gdata/atom/gdata-category.c +++ b/gdata/atom/gdata-category.c @@ -57,6 +57,7 @@ enum { }; G_DEFINE_TYPE_WITH_CODE (GDataCategory, gdata_category, GDATA_TYPE_PARSABLE, + G_ADD_PRIVATE (GDataCategory) G_IMPLEMENT_INTERFACE (GDATA_TYPE_COMPARABLE, gdata_category_comparable_init)) static void @@ -65,8 +66,6 @@ gdata_category_class_init (GDataCategoryClass *klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GDataParsableClass *parsable_class = GDATA_PARSABLE_CLASS (klass); - g_type_class_add_private (klass, sizeof (GDataCategoryPrivate)); - gobject_class->set_property = gdata_category_set_property; gobject_class->get_property = gdata_category_get_property; gobject_class->finalize = gdata_category_finalize; @@ -142,7 +141,7 @@ gdata_category_comparable_init (GDataComparableIface *iface) static void gdata_category_init (GDataCategory *self) { - self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GDATA_TYPE_CATEGORY, GDataCategoryPrivate); + self->priv = gdata_category_get_instance_private (self); } static void |