aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-07 00:06:03 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-07 00:06:03 +0800
commitbb155a9fa3c8b940205ed787b730ccb5bedf14f6 (patch)
treec9dd143fce15ec3f3b5307e246dd5fc84642ff3b /libempathy/empathy-contact.c
parent3607fded92aa603e2f6135144e16b109bfb900f8 (diff)
downloadgsoc2013-empathy-bb155a9fa3c8b940205ed787b730ccb5bedf14f6.tar
gsoc2013-empathy-bb155a9fa3c8b940205ed787b730ccb5bedf14f6.tar.gz
gsoc2013-empathy-bb155a9fa3c8b940205ed787b730ccb5bedf14f6.tar.bz2
gsoc2013-empathy-bb155a9fa3c8b940205ed787b730ccb5bedf14f6.tar.lz
gsoc2013-empathy-bb155a9fa3c8b940205ed787b730ccb5bedf14f6.tar.xz
gsoc2013-empathy-bb155a9fa3c8b940205ed787b730ccb5bedf14f6.tar.zst
gsoc2013-empathy-bb155a9fa3c8b940205ed787b730ccb5bedf14f6.zip
don't define update_geocode if geoclue is not enabled
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 94d83b89d..9f40d8a8d 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -73,7 +73,9 @@ static void contact_get_property (GObject *object, guint param_id,
static void contact_set_property (GObject *object, guint param_id,
const GValue *value, GParamSpec *pspec);
+#if HAVE_GEOCLUE
static void update_geocode (EmpathyContact *contact);
+#endif
static void empathy_contact_set_location (EmpathyContact *contact,
GHashTable *location);
@@ -1162,7 +1164,9 @@ empathy_contact_set_location (EmpathyContact *contact,
g_hash_table_unref (priv->location);
priv->location = g_hash_table_ref (location);
+#if HAVE_GEOCLUE
update_geocode (contact);
+#endif
g_object_notify (G_OBJECT (contact), "location");
}
@@ -1257,9 +1261,7 @@ geocode_cb (GeoclueGeocode *geocode,
g_object_unref (geocode);
g_object_unref (contact);
}
-#endif
-#if HAVE_GEOCLUE
static gchar *
get_dup_string (GHashTable *location,
gchar *key)
@@ -1272,12 +1274,10 @@ get_dup_string (GHashTable *location,
return NULL;
}
-#endif
static void
update_geocode (EmpathyContact *contact)
{
-#if HAVE_GEOCLUE
static GeoclueGeocode *geocode;
gchar *str;
GHashTable *address;
@@ -1348,5 +1348,5 @@ update_geocode (EmpathyContact *contact)
geocode_cb, contact);
g_hash_table_unref (address);
-#endif
}
+#endif