diff options
Diffstat (limited to 'gdata/gdata-feed.c')
-rw-r--r-- | gdata/gdata-feed.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdata/gdata-feed.c b/gdata/gdata-feed.c index c1e6aa93..e3777543 100644 --- a/gdata/gdata-feed.c +++ b/gdata/gdata-feed.c @@ -97,7 +97,7 @@ enum { PROP_NEXT_PAGE_TOKEN, }; -G_DEFINE_TYPE (GDataFeed, gdata_feed, GDATA_TYPE_PARSABLE) +G_DEFINE_TYPE_WITH_PRIVATE (GDataFeed, gdata_feed, GDATA_TYPE_PARSABLE) static void gdata_feed_class_init (GDataFeedClass *klass) @@ -105,8 +105,6 @@ gdata_feed_class_init (GDataFeedClass *klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GDataParsableClass *parsable_class = GDATA_PARSABLE_CLASS (klass); - g_type_class_add_private (klass, sizeof (GDataFeedPrivate)); - gobject_class->get_property = gdata_feed_get_property; gobject_class->dispose = gdata_feed_dispose; gobject_class->finalize = gdata_feed_finalize; @@ -319,7 +317,7 @@ gdata_feed_class_init (GDataFeedClass *klass) static void gdata_feed_init (GDataFeed *self) { - self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GDATA_TYPE_FEED, GDataFeedPrivate); + self->priv = gdata_feed_get_instance_private (self); self->priv->updated = -1; } |