diff options
Diffstat (limited to 'gdata/gcontact/gdata-gcontact-jot.c')
-rw-r--r-- | gdata/gcontact/gdata-gcontact-jot.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdata/gcontact/gdata-gcontact-jot.c b/gdata/gcontact/gdata-gcontact-jot.c index 0e58d1b8..7a514724 100644 --- a/gdata/gcontact/gdata-gcontact-jot.c +++ b/gdata/gcontact/gdata-gcontact-jot.c @@ -55,7 +55,7 @@ enum { PROP_RELATION_TYPE }; -G_DEFINE_TYPE (GDataGContactJot, gdata_gcontact_jot, GDATA_TYPE_PARSABLE) +G_DEFINE_TYPE_WITH_PRIVATE (GDataGContactJot, gdata_gcontact_jot, GDATA_TYPE_PARSABLE) static void gdata_gcontact_jot_class_init (GDataGContactJotClass *klass) @@ -63,8 +63,6 @@ gdata_gcontact_jot_class_init (GDataGContactJotClass *klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GDataParsableClass *parsable_class = GDATA_PARSABLE_CLASS (klass); - g_type_class_add_private (klass, sizeof (GDataGContactJotPrivate)); - gobject_class->get_property = gdata_gcontact_jot_get_property; gobject_class->set_property = gdata_gcontact_jot_set_property; gobject_class->finalize = gdata_gcontact_jot_finalize; @@ -113,7 +111,7 @@ gdata_gcontact_jot_class_init (GDataGContactJotClass *klass) static void gdata_gcontact_jot_init (GDataGContactJot *self) { - self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GDATA_TYPE_GCONTACT_JOT, GDataGContactJotPrivate); + self->priv = gdata_gcontact_jot_get_instance_private (self); } static void |