#if HAVE_GEOCLUE
#include <geoclue/geoclue-master.h>
-#endif
#include <extensions/extensions.h>
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;
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,
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,
DEBUG ("\t - Timestamp: %" G_GINT64_FORMAT, stamp64);
}
-#if HAVE_GEOCLUE
static void
initial_position_cb (GeocluePosition *position,
GeocluePositionFields fields,
main (int argc, char *argv[])
{
guint32 startup_timestamp;
- EmpathyLocationManager *location_manager;
+#if HAVE_GEOCLUE
+ EmpathyLocationManager *location_manager = NULL;
+#endif
EmpathyStatusIcon *icon;
EmpathyDispatcher *dispatcher;
EmpathyLogManager *log_manager;
G_CALLBACK (new_call_handler_cb), NULL);
/* Location mananger */
+#if HAVE_GEOCLUE
location_manager = empathy_location_manager_get_default ();
+#endif
gtk_main ();
g_object_unref (dispatcher);
g_object_unref (chatroom_manager);
g_object_unref (ft_manager);
+#if HAVE_GEOCLUE
g_object_unref (location_manager);
+#endif
notify_uninit ();