]> git.0d.be Git - empathy.git/commitdiff
When updating the resources, check for changed location
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 15 Dec 2008 21:17:45 +0000 (16:17 -0500)
committerPierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>
Mon, 1 Jun 2009 15:35:30 +0000 (11:35 -0400)
libempathy-gtk/empathy-location-manager.c

index f71f3cebf8900a14c39f585e9107184242b7ce56..9fda2f90d0e7b8a4b84e7b4845af4e89e4455a8c 100644 (file)
@@ -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