[gnome-settings-daemon] datetime: Set geoclue distance threshold
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] datetime: Set geoclue distance threshold
- Date: Sun, 15 Sep 2013 22:43:53 +0000 (UTC)
commit 75b48474f098147091a1aed6aefa13e325f20ddb
Author: Kalev Lember <kalevlember gmail com>
Date: Sat Sep 7 16:49:28 2013 +0200
datetime: Set geoclue distance threshold
We don't want to get location changed signals for small position
changes, e.g. when the computer moves a few meters to another room and
geoclue gets new coordinates from GPS.
https://bugzilla.gnome.org/show_bug.cgi?id=707696
plugins/datetime/gsd-timezone-monitor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/datetime/gsd-timezone-monitor.c b/plugins/datetime/gsd-timezone-monitor.c
index f0c9d12..e1048f3 100644
--- a/plugins/datetime/gsd-timezone-monitor.c
+++ b/plugins/datetime/gsd-timezone-monitor.c
@@ -339,6 +339,9 @@ on_client_proxy_ready (GObject *source_object,
return;
}
+ geoclue_client_set_distance_threshold (priv->geoclue_client,
+ GEOCODE_LOCATION_ACCURACY_CITY);
+
g_signal_connect (priv->geoclue_client, "location-updated",
G_CALLBACK (on_location_updated), self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]