aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-01-25 21:05:56 +0800
committerPierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>2009-06-01 23:35:31 +0800
commit3d23b14af82c996165a8eec628d841f463302f7c (patch)
tree3521ec5c50b0f871ad28a5e4769cd9222e0b6ec0 /libempathy-gtk
parentcab630a8ac359a8f44fdd30a5c3c128ef5d0916a (diff)
downloadgsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.gz
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.bz2
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.lz
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.xz
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.zst
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.zip
Fix compilation if geoclue is not enabled
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-location-manager.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index c0595818e..de772c7e3 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -30,7 +30,6 @@
#if HAVE_GEOCLUE
#include <geoclue/geoclue-master.h>
-#endif
#include <extensions/extensions.h>
@@ -52,12 +51,12 @@ typedef struct {
MissionControl *mc;
GHashTable *location;
gpointer token;
-#if HAVE_GEOCLUE
+
GeoclueResourceFlags resources;
GeoclueMasterClient *gc_client;
GeocluePosition *gc_position;
GeoclueAddress *gc_address;
-#endif
+
gboolean reduce_accuracy;
gdouble reduce_value;
EmpathyAccountManager *account_manager;
@@ -68,7 +67,6 @@ static void location_manager_get_property (GObject *object, guint param_id,
GValue *value, GParamSpec *pspec);
static void location_manager_set_property (GObject *object, guint param_id,
const GValue *value, GParamSpec *pspec);
-#if HAVE_GEOCLUE
static void position_changed_cb (GeocluePosition *position,
GeocluePositionFields fields, int timestamp, double latitude,
double longitude, double altitude, GeoclueAccuracy *accuracy,
@@ -83,7 +81,6 @@ static void resource_cb (EmpathyConf *conf, const gchar *key,
gpointer user_data);
static void accuracy_cb (EmpathyConf *conf, const gchar *key,
gpointer user_data);
-#endif
static void account_connection_changed_cb (EmpathyAccountManager *manager,
McAccount *account, TpConnectionStatusReason reason,
TpConnectionStatus current, TpConnectionStatus previous,
@@ -293,7 +290,6 @@ update_timestamp (EmpathyLocationManager *location_manager,
DEBUG ("\t - Timestamp: %" G_GINT64_FORMAT, stamp64);
}
-#if HAVE_GEOCLUE
static void
initial_position_cb (GeocluePosition *position,
GeocluePositionFields fields,