diff options
author | Pablo Barciela <scow@riseup.net> | 2019-09-09 11:17:34 +0200 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2019-09-09 11:17:34 +0200 |
commit | f94369975d773c023c5e7e292f97a5cc3987dfa2 (patch) | |
tree | 96eb6bd5d4537d915eca5fb799bb3f96711c446f /src/addressbook/backends/carddav/e-book-backend-carddav.c | |
parent | 1b31cd57bd5f5d30455a22aaa6ad1f38f3361505 (diff) | |
download | evolution-data-server-f94369975d773c023c5e7e292f97a5cc3987dfa2.tar.gz |
M!32 - Replace deprecated 'g_type_class_add_private'
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/merge_requests/32
Diffstat (limited to 'src/addressbook/backends/carddav/e-book-backend-carddav.c')
-rw-r--r-- | src/addressbook/backends/carddav/e-book-backend-carddav.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/addressbook/backends/carddav/e-book-backend-carddav.c b/src/addressbook/backends/carddav/e-book-backend-carddav.c index 3509229ea..6075f59cb 100644 --- a/src/addressbook/backends/carddav/e-book-backend-carddav.c +++ b/src/addressbook/backends/carddav/e-book-backend-carddav.c @@ -48,7 +48,7 @@ struct _EBookBackendCardDAVPrivate { gboolean is_google; }; -G_DEFINE_TYPE (EBookBackendCardDAV, e_book_backend_carddav, E_TYPE_BOOK_META_BACKEND) +G_DEFINE_TYPE_WITH_PRIVATE (EBookBackendCardDAV, e_book_backend_carddav, E_TYPE_BOOK_META_BACKEND) static EWebDAVSession * ebb_carddav_ref_session (EBookBackendCardDAV *bbdav) @@ -1354,7 +1354,7 @@ e_book_backend_carddav_finalize (GObject *object) static void e_book_backend_carddav_init (EBookBackendCardDAV *bbdav) { - bbdav->priv = G_TYPE_INSTANCE_GET_PRIVATE (bbdav, E_TYPE_BOOK_BACKEND_CARDDAV, EBookBackendCardDAVPrivate); + bbdav->priv = e_book_backend_carddav_get_instance_private (bbdav); g_mutex_init (&bbdav->priv->webdav_lock); } @@ -1366,8 +1366,6 @@ e_book_backend_carddav_class_init (EBookBackendCardDAVClass *klass) EBookBackendClass *book_backend_class; EBookMetaBackendClass *book_meta_backend_class; - g_type_class_add_private (klass, sizeof (EBookBackendCardDAVPrivate)); - book_meta_backend_class = E_BOOK_META_BACKEND_CLASS (klass); book_meta_backend_class->backend_module_filename = "libebookbackendcarddav.so"; book_meta_backend_class->backend_factory_type_name = "EBookBackendCardDAVFactory"; |