summaryrefslogtreecommitdiff
path: root/src/gclue-modem-gps.c
diff options
context:
space:
mode:
authorZeeshan Ali <zeenix@collabora.co.uk>2019-01-04 16:47:59 +0100
committerZeeshan Ali <zeenix@collabora.co.uk>2019-01-04 16:47:59 +0100
commit179a8e59989d4452b7e8fde2f24912e3990436de (patch)
treedb0eb2d4c92d3d8fa48b0678224af47bb1321dd8 /src/gclue-modem-gps.c
parentccbcbb79fb1dae57a36059c98775d89f2091b2d5 (diff)
downloadgeoclue-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-modem-gps.c')
-rw-r--r--src/gclue-modem-gps.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gclue-modem-gps.c b/src/gclue-modem-gps.c
index 048f584..6045d6b 100644
--- a/src/gclue-modem-gps.c
+++ b/src/gclue-modem-gps.c
@@ -43,7 +43,10 @@ struct _GClueModemGPSPrivate {
};
-G_DEFINE_TYPE (GClueModemGPS, gclue_modem_gps, GCLUE_TYPE_LOCATION_SOURCE)
+G_DEFINE_TYPE_WITH_CODE (GClueModemGPS,
+ gclue_modem_gps,
+ GCLUE_TYPE_LOCATION_SOURCE,
+ G_ADD_PRIVATE (GClueModemGPS))
static gboolean
gclue_modem_gps_start (GClueLocationSource *source);
@@ -144,8 +147,6 @@ gclue_modem_gps_class_init (GClueModemGPSClass *klass)
source_class->start = gclue_modem_gps_start;
source_class->stop = gclue_modem_gps_stop;
-
- g_type_class_add_private (klass, sizeof (GClueModemGPSPrivate));
}
static void