aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-map-view.c
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-12 12:10:13 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-28 00:52:05 +0800
commit3967ad986cf0a678f5fa918e7e995267ed71fa07 (patch)
tree171d70c22f587db7f98819dd035f60ef7a4a022f /src/empathy-map-view.c
parent29a6e9ff7d6b775be67d81c5ce8a5631164a51e3 (diff)
downloadgsoc2013-empathy-3967ad986cf0a678f5fa918e7e995267ed71fa07.tar
gsoc2013-empathy-3967ad986cf0a678f5fa918e7e995267ed71fa07.tar.gz
gsoc2013-empathy-3967ad986cf0a678f5fa918e7e995267ed71fa07.tar.bz2
gsoc2013-empathy-3967ad986cf0a678f5fa918e7e995267ed71fa07.tar.lz
gsoc2013-empathy-3967ad986cf0a678f5fa918e7e995267ed71fa07.tar.xz
gsoc2013-empathy-3967ad986cf0a678f5fa918e7e995267ed71fa07.tar.zst
gsoc2013-empathy-3967ad986cf0a678f5fa918e7e995267ed71fa07.zip
Make buildable without Geoclue
Diffstat (limited to 'src/empathy-map-view.c')
-rw-r--r--src/empathy-map-view.c27
1 files changed, 7 insertions, 20 deletions
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index c6affb409..df2681c1a 100644
--- a/src/empathy-map-view.c
+++ b/src/empathy-map-view.c
@@ -28,38 +28,22 @@
#include <champlain/champlain.h>
#include <champlain-gtk/champlain-gtk.h>
#include <clutter-gtk/gtk-clutter-embed.h>
+#if HAVE_GEOCLUE
#include <geoclue/geoclue-geocode.h>
+#endif
#include <telepathy-glib/util.h>
#include <libempathy/empathy-contact.h>
-#include <libempathy/empathy-utils.h>
-#include <libempathy/empathy-chatroom-manager.h>
-#include <libempathy/empathy-chatroom.h>
-#include <libempathy/empathy-contact-list.h>
#include <libempathy/empathy-contact-manager.h>
-#include <libempathy/empathy-contact-factory.h>
+#include <libempathy/empathy-utils.h>
#include <libempathy/empathy-location.h>
-#include <libempathy/empathy-status-presets.h>
-#include <libempathy-gtk/empathy-contact-dialogs.h>
#include <libempathy-gtk/empathy-contact-list-store.h>
#include <libempathy-gtk/empathy-contact-list-view.h>
#include <libempathy-gtk/empathy-presence-chooser.h>
#include <libempathy-gtk/empathy-ui-utils.h>
-#include <libempathy-gtk/empathy-geometry.h>
-#include <libempathy-gtk/empathy-conf.h>
-#include <libempathy-gtk/empathy-log-window.h>
-#include <libempathy-gtk/empathy-new-message-dialog.h>
-#include <libempathy-gtk/empathy-gtk-enum-types.h>
-#include "empathy-accounts-dialog.h"
#include "empathy-map-view.h"
-#include "ephy-spinner.h"
-#include "empathy-preferences.h"
-#include "empathy-about-dialog.h"
-#include "empathy-new-chatroom-dialog.h"
-#include "empathy-chatrooms-window.h"
-#include "empathy-event-manager.h"
#define DEBUG_FLAG EMPATHY_DEBUG_LOCATION
#include <libempathy/empathy-debug.h>
@@ -161,6 +145,7 @@ map_view_destroy_cb (GtkWidget *widget,
g_free (window);
}
+#if HAVE_GEOCLUE
#define GEOCODE_SERVICE "org.freedesktop.Geoclue.Providers.Yahoo"
#define GEOCODE_PATH "/org/freedesktop/Geoclue/Providers/Yahoo"
@@ -212,7 +197,7 @@ map_view_geocode_cb (GeoclueGeocode *geocode,
empathy_contact_set_location (EMPATHY_CONTACT (userdata), location);
g_hash_table_unref (location);
}
-
+#endif
static gchar *
get_dup_string (GHashTable *location, gchar *key)
@@ -247,6 +232,7 @@ map_view_marker_update (ChamplainMarker *marker,
value = g_hash_table_lookup (location, EMPATHY_LOCATION_LAT);
if (value == NULL)
{
+#if HAVE_GEOCLUE
GeoclueGeocode * geocode = geoclue_geocode_new (GEOCODE_SERVICE,
GEOCODE_PATH);
gchar *str;
@@ -270,6 +256,7 @@ map_view_marker_update (ChamplainMarker *marker,
geoclue_geocode_address_to_position_async (geocode, address,
map_view_geocode_cb, contact);
+#endif
clutter_actor_hide (CLUTTER_ACTOR (marker));
return;
}