[empathy] geoclue-helper: Provide a DesktopId



commit c10bbdcc3a0ac786bfb6a55e0c857270022a38f7
Author: Fabrice Bellet <fabrice bellet info>
Date:   Sun Mar 22 13:49:12 2015 +0100

    geoclue-helper: Provide a DesktopId
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746612

 configure.ac                            |    2 +-
 libempathy-gtk/empathy-geoclue-helper.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3c49d8a..93ec215 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,7 +73,7 @@ GOA_REQUIRED=3.5.1
 
 # Optional deps
 ENCHANT_REQUIRED=1.2.0
-GEOCLUE_REQUIRED=1.99.3
+GEOCLUE_REQUIRED=2.1.0
 GEOCODE_GLIB_REQUIRED=0.99.1
 ISO_CODES_REQUIRED=0.35
 NAUTILUS_SENDTO_REQUIRED=2.90.0
diff --git a/libempathy-gtk/empathy-geoclue-helper.c b/libempathy-gtk/empathy-geoclue-helper.c
index 97d4fc6..f04aed7 100644
--- a/libempathy-gtk/empathy-geoclue-helper.c
+++ b/libempathy-gtk/empathy-geoclue-helper.c
@@ -28,6 +28,7 @@
 #include "empathy-debug.h"
 
 #define GEOCLUE_BUS_NAME "org.freedesktop.GeoClue2"
+#define EMPATHY_DESKTOP_ID "empathy"
 
 /**
  * SECTION: empathy-geoclue-helper
@@ -305,6 +306,7 @@ client_cb (GObject *source,
 
   g_object_set (self->priv->client,
       "distance-threshold", self->priv->distance_threshold,
+      "desktop-id", EMPATHY_DESKTOP_ID,
       NULL);
 
   g_task_return_boolean (task, TRUE);


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