aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-location-manager.c
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2008-12-16 05:17:45 +0800
committerPierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>2009-06-01 23:35:30 +0800
commit94d32934ce6f9f4f22b314d262b7b2e7f15fa400 (patch)
tree2283dbd4f68b7b51ad4f75602711c1af4b979731 /libempathy-gtk/empathy-location-manager.c
parentd6625f09c88ea48121c815a4f8f46025c10090c5 (diff)
downloadgsoc2013-empathy-94d32934ce6f9f4f22b314d262b7b2e7f15fa400.tar
gsoc2013-empathy-94d32934ce6f9f4f22b314d262b7b2e7f15fa400.tar.gz
gsoc2013-empathy-94d32934ce6f9f4f22b314d262b7b2e7f15fa400.tar.bz2
gsoc2013-empathy-94d32934ce6f9f4f22b314d262b7b2e7f15fa400.tar.lz
gsoc2013-empathy-94d32934ce6f9f4f22b314d262b7b2e7f15fa400.tar.xz
gsoc2013-empathy-94d32934ce6f9f4f22b314d262b7b2e7f15fa400.tar.zst
gsoc2013-empathy-94d32934ce6f9f4f22b314d262b7b2e7f15fa400.zip
When updating the resources, check for changed location
Diffstat (limited to 'libempathy-gtk/empathy-location-manager.c')
-rw-r--r--libempathy-gtk/empathy-location-manager.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index f71f3cebf..9fda2f90d 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -397,7 +397,19 @@ update_resources (EmpathyLocationManager *location_manager)
if (!geoclue_master_client_set_requirements (priv->gc_client,
GEOCLUE_ACCURACY_LEVEL_LOCALITY, 0, TRUE, priv->resources,
NULL))
- g_printerr ("set_requirements failed");
+ {
+ g_printerr ("set_requirements failed");
+ return;
+ }
+
+ if (!priv->is_setup)
+ return;
+
+ geoclue_address_get_address_async (priv->gc_address,
+ initial_address_cb, location_manager);
+ geoclue_position_get_position_async (priv->gc_position,
+ initial_position_cb, location_manager);
+
}
@@ -450,6 +462,7 @@ setup_geoclue (EmpathyLocationManager *location_manager)
initial_address_cb, location_manager);
geoclue_position_get_position_async (priv->gc_position,
initial_position_cb, location_manager);
+
}
static void