[empathy] Publish location when enabling it



commit 2f6fcddc5dbeba69b7c2cc01d311ad2057f24f19
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Thu Dec 11 16:31:52 2008 -0500

    Publish location when enabling it
---
 libempathy-gtk/empathy-location-manager.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index b48278b..b658b13 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -428,8 +428,12 @@ publish_cb (EmpathyConf *conf,
   if (!empathy_conf_get_bool (conf, key, &can_publish))
     return;
 
-  if (can_publish && !priv->is_setup)
-    setup_geoclue (manager);
+  if (can_publish)
+    {
+      if (!priv->is_setup)
+        setup_geoclue (manager);
+      publish_location_to_all_accounts (manager);
+    }
 }
 
 



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