diff options
Diffstat (limited to 'gdata/gdata-entry.c')
-rw-r--r-- | gdata/gdata-entry.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdata/gdata-entry.c b/gdata/gdata-entry.c index 30488a83..c6127d87 100644 --- a/gdata/gdata-entry.c +++ b/gdata/gdata-entry.c @@ -91,7 +91,7 @@ enum { PROP_CONTENT_URI }; -G_DEFINE_TYPE (GDataEntry, gdata_entry, GDATA_TYPE_PARSABLE) +G_DEFINE_TYPE_WITH_PRIVATE (GDataEntry, gdata_entry, GDATA_TYPE_PARSABLE) static void gdata_entry_class_init (GDataEntryClass *klass) @@ -99,8 +99,6 @@ gdata_entry_class_init (GDataEntryClass *klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GDataParsableClass *parsable_class = GDATA_PARSABLE_CLASS (klass); - g_type_class_add_private (klass, sizeof (GDataEntryPrivate)); - gobject_class->constructed = gdata_entry_constructed; gobject_class->get_property = gdata_entry_get_property; gobject_class->set_property = gdata_entry_set_property; @@ -272,7 +270,7 @@ gdata_entry_class_init (GDataEntryClass *klass) static void gdata_entry_init (GDataEntry *self) { - self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GDATA_TYPE_ENTRY, GDataEntryPrivate); + self->priv = gdata_entry_get_instance_private (self); self->priv->updated = -1; self->priv->published = -1; } |