aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy.c
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-01-25 21:05:56 +0800
committerPierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>2009-06-01 23:35:31 +0800
commit3d23b14af82c996165a8eec628d841f463302f7c (patch)
tree3521ec5c50b0f871ad28a5e4769cd9222e0b6ec0 /src/empathy.c
parentcab630a8ac359a8f44fdd30a5c3c128ef5d0916a (diff)
downloadgsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.gz
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.bz2
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.lz
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.xz
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.tar.zst
gsoc2013-empathy-3d23b14af82c996165a8eec628d841f463302f7c.zip
Fix compilation if geoclue is not enabled
Diffstat (limited to 'src/empathy.c')
-rw-r--r--src/empathy.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/empathy.c b/src/empathy.c
index 66bb2c119..60c250838 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -422,7 +422,9 @@ int
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;
@@ -585,7 +587,9 @@ main (int argc, char *argv[])
G_CALLBACK (new_call_handler_cb), NULL);
/* Location mananger */
+#if HAVE_GEOCLUE
location_manager = empathy_location_manager_get_default ();
+#endif
gtk_main ();
@@ -598,7 +602,9 @@ main (int argc, char *argv[])
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 ();