]> git.0d.be Git - empathy.git/blobdiff - src/empathy-auto-salut-account-helper.c
Update Simplified Chinese help translation.
[empathy.git] / src / empathy-auto-salut-account-helper.c
index 37aedb325111d50930b70de10236b87c4d8ad2e5..409b6936c66ef741385226b1d4c49dc98b8849f1 100644 (file)
  *          Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
  */
 
+#include <config.h>
+
 #include <glib.h>
-#include <glib/gi18n.h>
+#include <glib/gi18n-lib.h>
 
 #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>
-#include <libempathy-gtk/empathy-conf.h>
 
 #define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT
 #include <libempathy/empathy-debug.h>
@@ -64,6 +68,7 @@ EmpathyAccountSettings *
 create_salut_account_settings (void)
 {
   EmpathyAccountSettings  *settings;
+#if HAVE_EDS
   EBook *book;
   EContact *contact;
   gchar *nickname = NULL;
@@ -72,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",
+  settings = empathy_account_settings_new ("salut", "local-xmpp", NULL,
       _("People nearby"));
 
+#if HAVE_EDS
   /* Get self EContact from EDS */
   if (!e_book_get_self (&contact, &book, &error))
     {
@@ -116,6 +123,7 @@ create_salut_account_settings (void)
   g_free (jid);
   g_object_unref (contact);
   g_object_unref (book);
+#endif
 
   return settings;
 }