aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-geoclue2.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-08 15:59:45 +0100
committerMattias Andrée <m@maandree.se>2025-03-08 15:59:45 +0100
commitd937713c424a6cb1a365a1ade214c97ab5f7f357 (patch)
tree3af203319480c426c599be5e2c3f83bdb13f24eb /src/location-geoclue2.c
parentminor misc improvements (diff)
downloadredshift-ng-d937713c424a6cb1a365a1ade214c97ab5f7f357.tar.gz
redshift-ng-d937713c424a6cb1a365a1ade214c97ab5f7f357.tar.bz2
redshift-ng-d937713c424a6cb1a365a1ade214c97ab5f7f357.tar.xz
.lat{ => itude}, .lon{ => gitude}
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/location-geoclue2.c')
-rw-r--r--src/location-geoclue2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/location-geoclue2.c b/src/location-geoclue2.c
index 5e66465..1fcfa51 100644
--- a/src/location-geoclue2.c
+++ b/src/location-geoclue2.c
@@ -107,10 +107,10 @@ geoclue_client_signal_cb(GDBusProxy *client, gchar *sender_name, gchar *signal_n
/* Read location properties */
lat_v = g_dbus_proxy_get_cached_property(location, "Latitude");
- state->location.lat = g_variant_get_double(lat_v);
+ state->location.latitude = g_variant_get_double(lat_v);
lon_v = g_dbus_proxy_get_cached_property(location, "Longitude");
- state->location.lon = g_variant_get_double(lon_v);
+ state->location.longitude = g_variant_get_double(lon_v);
state->available = 1;
@@ -318,8 +318,8 @@ location_geoclue2_start(struct location_state *state)
state->available = 0;
state->error = 0;
- state->location.lat = 0;
- state->location.lon = 0;
+ state->location.latitude = 0;
+ state->location.longitude = 0;
if (pipeutils_create_nonblocking(pipefds)) {
weprintf(_("Failed to start GeoClue2 provider!"));