]> git.0d.be Git - empathy.git/commitdiff
Call geoclue_master_client_set_requirements before asking for position/address
authorLaurent Bigonville <bigon@bigon.be>
Tue, 8 Jun 2010 21:38:26 +0000 (23:38 +0200)
committerLaurent Bigonville <bigon@bigon.be>
Tue, 8 Jun 2010 21:38:26 +0000 (23:38 +0200)
Be sure geoclue_master_client_set_requirements() is called in setup_geoclue()
otherwise no provider will be selected (#621023)

libempathy-gtk/empathy-location-manager.c

index f4f1e0ae3e710a20fe83eb2cbb96a830485fb737..3fd324917a1aefab4fe3ff22bc9a925eb7d16cd0 100644 (file)
@@ -553,7 +553,13 @@ setup_geoclue (EmpathyLocationManager *self)
       return;
     }
 
-  update_resources (self);
+  if (!geoclue_master_client_set_requirements (priv->gc_client,
+          GEOCLUE_ACCURACY_LEVEL_COUNTRY, 0, FALSE, priv->resources,
+          NULL))
+    {
+      DEBUG ("set_requirements failed");
+      return;
+    }
 
   /* Get updated when the position is changes */
   priv->gc_position = geoclue_master_client_create_position (