aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-auto-salut-account-helper.c
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2010-03-04 04:30:24 +0800
committerSaleem Abdulrasool <compnerd@compnerd.org>2010-08-25 09:48:10 +0800
commit05166126df1b96b26a7fb2c9eb6c344214878371 (patch)
tree85b51d6bad95076fbf3954d62fd1cd15416ba8ca /src/empathy-auto-salut-account-helper.c
parent3b8d776ba062864878dc5901f080bccbdd440c7e (diff)
downloadgsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.gz
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.bz2
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.lz
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.xz
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.zst
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.zip
allow building empathy without eds
Diffstat (limited to 'src/empathy-auto-salut-account-helper.c')
-rw-r--r--src/empathy-auto-salut-account-helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/empathy-auto-salut-account-helper.c b/src/empathy-auto-salut-account-helper.c
index 23484dd45..57d39879e 100644
--- a/src/empathy-auto-salut-account-helper.c
+++ b/src/empathy-auto-salut-account-helper.c
@@ -26,7 +26,10 @@
#include <telepathy-glib/account-manager.h>
#include <telepathy-glib/util.h>
+
+#if HAVE_EDS
#include <libebook/e-book.h>
+#endif
#include <libempathy/empathy-account-settings.h>
@@ -65,6 +68,7 @@ EmpathyAccountSettings *
create_salut_account_settings (void)
{
EmpathyAccountSettings *settings;
+#if HAVE_EDS
EBook *book;
EContact *contact;
gchar *nickname = NULL;
@@ -73,10 +77,12 @@ create_salut_account_settings (void)
gchar *email = NULL;
gchar *jid = NULL;
GError *error = NULL;
+#endif
settings = empathy_account_settings_new ("salut", "local-xmpp",
_("People nearby"));
+#if HAVE_EDS
/* Get self EContact from EDS */
if (!e_book_get_self (&contact, &book, &error))
{
@@ -117,6 +123,7 @@ create_salut_account_settings (void)
g_free (jid);
g_object_unref (contact);
g_object_unref (book);
+#endif
return settings;
}