diff options
Diffstat (limited to 'gdata/services/contacts/gdata-contacts-query.c')
-rw-r--r-- | gdata/services/contacts/gdata-contacts-query.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdata/services/contacts/gdata-contacts-query.c b/gdata/services/contacts/gdata-contacts-query.c index 3f3fab58..d0256559 100644 --- a/gdata/services/contacts/gdata-contacts-query.c +++ b/gdata/services/contacts/gdata-contacts-query.c @@ -105,7 +105,7 @@ enum { PROP_GROUP }; -G_DEFINE_TYPE (GDataContactsQuery, gdata_contacts_query, GDATA_TYPE_QUERY) +G_DEFINE_TYPE_WITH_PRIVATE (GDataContactsQuery, gdata_contacts_query, GDATA_TYPE_QUERY) static void gdata_contacts_query_class_init (GDataContactsQueryClass *klass) @@ -113,8 +113,6 @@ gdata_contacts_query_class_init (GDataContactsQueryClass *klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GDataQueryClass *query_class = GDATA_QUERY_CLASS (klass); - g_type_class_add_private (klass, sizeof (GDataContactsQueryPrivate)); - gobject_class->set_property = gdata_contacts_query_set_property; gobject_class->get_property = gdata_contacts_query_get_property; gobject_class->finalize = gdata_contacts_query_finalize; @@ -180,7 +178,7 @@ gdata_contacts_query_class_init (GDataContactsQueryClass *klass) static void gdata_contacts_query_init (GDataContactsQuery *self) { - self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GDATA_TYPE_CONTACTS_QUERY, GDataContactsQueryPrivate); + self->priv = gdata_contacts_query_get_instance_private (self); /* https://developers.google.com/google-apps/contacts/v3/reference#contacts-query-parameters-reference * indicates that the Contacts service uses index pagination, but all |