From 3967ad986cf0a678f5fa918e7e995267ed71fa07 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Tue, 12 May 2009 00:10:13 -0400 Subject: Make buildable without Geoclue --- src/empathy-map-view.c | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'src/empathy-map-view.c') 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 #include #include +#if HAVE_GEOCLUE #include +#endif #include #include -#include -#include -#include -#include #include -#include +#include #include -#include -#include #include #include #include #include -#include -#include -#include -#include -#include -#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 @@ -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; } -- cgit v1.2.3