summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeemu Ikonen <tpikonen@mailbox.org>2021-12-18 14:43:25 +0200
committerTeemu Ikonen <tpikonen@mailbox.org>2022-01-13 12:05:05 +0000
commite5b6c6ec154bcf267f087f43eec0929bc757ea31 (patch)
treeb4480695bbc7b39994546fd6b8087586c3863ee9
parent1db13ee5b6287d440e3cc88e067cd5a69c621cd6 (diff)
service-client: Rename var in on_locator_location_changed
Rename location_info to new_location in on_locator_location_changed.
-rw-r--r--src/gclue-service-client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gclue-service-client.c b/src/gclue-service-client.c
index e7cfd86..e276613 100644
--- a/src/gclue-service-client.c
+++ b/src/gclue-service-client.c
@@ -205,19 +205,19 @@ on_locator_location_changed (GObject *gobject,
GClueServiceClient *client = GCLUE_SERVICE_CLIENT (user_data);
GClueServiceClientPrivate *priv = client->priv;
GClueLocationSource *locator = GCLUE_LOCATION_SOURCE (gobject);
- GClueLocation *location_info;
+ GClueLocation *new_location;
char *path = NULL;
const char *prev_path;
GError *error = NULL;
- location_info = gclue_location_source_get_location (locator);
- if (location_info == NULL)
+ new_location = gclue_location_source_get_location (locator);
+ if (new_location == NULL)
return; /* No location found yet */
- if (priv->location != NULL && below_threshold (client, location_info)) {
+ if (priv->location != NULL && below_threshold (client, new_location)) {
g_debug ("Updating location, below threshold");
g_object_set (priv->location,
- "location", location_info,
+ "location", new_location,
NULL);
return;
}
@@ -232,7 +232,7 @@ on_locator_location_changed (GObject *gobject,
priv->location = gclue_service_location_new (priv->client_info,
path,
priv->connection,
- location_info,
+ new_location,
&error);
if (priv->location == NULL)
goto error_out;