diff options
author | Zeeshan Ali <zeenix@collabora.co.uk> | 2019-01-04 16:47:59 +0100 |
---|---|---|
committer | Zeeshan Ali <zeenix@collabora.co.uk> | 2019-01-04 16:47:59 +0100 |
commit | 179a8e59989d4452b7e8fde2f24912e3990436de (patch) | |
tree | db0eb2d4c92d3d8fa48b0678224af47bb1321dd8 /src/gclue-client-info.c | |
parent | ccbcbb79fb1dae57a36059c98775d89f2091b2d5 (diff) | |
download | geoclue-179a8e59989d4452b7e8fde2f24912e3990436de.tar.gz |
Drop use of deprecated g_type_class_add_private()
Use the G_ADD_PRIVATE() macro instead.
This doesn't fix the issue in geocode-glib but that's not an issue since
we plan to drop geocode-glib (#88).
Fixes #98.
Diffstat (limited to 'src/gclue-client-info.c')
-rw-r--r-- | src/gclue-client-info.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gclue-client-info.c b/src/gclue-client-info.c index 64057c0..4aab453 100644 --- a/src/gclue-client-info.c +++ b/src/gclue-client-info.c @@ -29,12 +29,6 @@ static void gclue_client_info_async_initable_init (GAsyncInitableIface *iface); -G_DEFINE_TYPE_WITH_CODE (GClueClientInfo, - gclue_client_info, - G_TYPE_OBJECT, - G_IMPLEMENT_INTERFACE (G_TYPE_ASYNC_INITABLE, - gclue_client_info_async_initable_init)); - struct _GClueClientInfoPrivate { char *bus_name; @@ -46,6 +40,13 @@ struct _GClueClientInfoPrivate char *xdg_id; }; +G_DEFINE_TYPE_WITH_CODE (GClueClientInfo, + gclue_client_info, + G_TYPE_OBJECT, + G_IMPLEMENT_INTERFACE (G_TYPE_ASYNC_INITABLE, + gclue_client_info_async_initable_init) + G_ADD_PRIVATE (GClueClientInfo)); + enum { PROP_0, @@ -135,8 +136,6 @@ gclue_client_info_class_init (GClueClientInfoClass *klass) object_class->get_property = gclue_client_info_get_property; object_class->set_property = gclue_client_info_set_property; - g_type_class_add_private (object_class, sizeof (GClueClientInfoPrivate)); - gParamSpecs[PROP_PEER] = g_param_spec_string ("bus-name", "BusName", "Bus name of client", |