[empathy/mc5] Add api to ask if we have importer our mc4 accounts



commit 9d3432812718541748315d119b22960c190a2ffd
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Sun Aug 23 18:45:13 2009 +0100

    Add api to ask if we have importer our mc4 accounts

 src/empathy-import-mc4-accounts.c |   14 ++++++++++++++
 src/empathy-import-mc4-accounts.h |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-import-mc4-accounts.c b/src/empathy-import-mc4-accounts.c
index 5425b35..27dd949 100644
--- a/src/empathy-import-mc4-accounts.c
+++ b/src/empathy-import-mc4-accounts.c
@@ -369,6 +369,20 @@ failed:
 }
 
 gboolean
+empathy_import_mc4_has_imported (void)
+{
+  GConfClient *client;
+  gboolean ret;
+
+  client = gconf_client_get_default ();
+
+  ret = gconf_client_get_bool (client, IMPORTED_MC4_ACCOUNTS, NULL);
+  g_object_unref (client);
+
+  return ret;
+}
+
+gboolean
 empathy_import_mc4_accounts (EmpathyConnectionManagers *managers)
 {
   GConfClient *client;
diff --git a/src/empathy-import-mc4-accounts.h b/src/empathy-import-mc4-accounts.h
index c30b4e5..98fb869 100644
--- a/src/empathy-import-mc4-accounts.h
+++ b/src/empathy-import-mc4-accounts.h
@@ -27,6 +27,7 @@ G_BEGIN_DECLS
 #include <libempathy/empathy-connection-managers.h>
 
 gboolean empathy_import_mc4_accounts (EmpathyConnectionManagers *managers);
+gboolean empathy_import_mc4_has_imported (void);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]