diff options
author | Laurent Bigonville <bigon@bigon.be> | 2010-06-09 05:38:26 +0800 |
---|---|---|
committer | Laurent Bigonville <bigon@bigon.be> | 2010-06-09 05:38:26 +0800 |
commit | e74e1d64e45dba2677757dfff5adafabc611b13f (patch) | |
tree | 12ca9e3346b2454d160aa2935b1c26c049639e3e /libempathy-gtk | |
parent | bf6242ed6cbd030902064c4d7d3460105ac986ab (diff) | |
download | gsoc2013-empathy-e74e1d64e45dba2677757dfff5adafabc611b13f.tar gsoc2013-empathy-e74e1d64e45dba2677757dfff5adafabc611b13f.tar.gz gsoc2013-empathy-e74e1d64e45dba2677757dfff5adafabc611b13f.tar.bz2 gsoc2013-empathy-e74e1d64e45dba2677757dfff5adafabc611b13f.tar.lz gsoc2013-empathy-e74e1d64e45dba2677757dfff5adafabc611b13f.tar.xz gsoc2013-empathy-e74e1d64e45dba2677757dfff5adafabc611b13f.tar.zst gsoc2013-empathy-e74e1d64e45dba2677757dfff5adafabc611b13f.zip |
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)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 f4f1e0ae3..3fd324917 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 ( |