]> git.0d.be Git - empathy.git/commitdiff
don't define update_geocode if geoclue is not enabled
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Apr 2010 16:06:03 +0000 (18:06 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Apr 2010 16:06:03 +0000 (18:06 +0200)
libempathy/empathy-contact.c

index 94d83b89d387a95010a7650159c8d3bb94a23e88..9f40d8a8ddc93578db0795c5cb64cd0fb9d284c9 100644 (file)
@@ -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