[empathy] Call geoclue_master_client_set_requirements before asking for position/address



commit e74e1d64e45dba2677757dfff5adafabc611b13f
Author: Laurent Bigonville <bigon bigon be>
Date:   Tue Jun 8 23:38:26 2010 +0200

    Call geoclue_master_client_set_requirements before asking for position/address
    
    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 |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index f4f1e0a..3fd3249 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -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 (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]