From 9d3432812718541748315d119b22960c190a2ffd Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sun, 23 Aug 2009 18:45:13 +0100 Subject: 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(+) diff --git a/src/empathy-import-mc4-accounts.c b/src/empathy-import-mc4-accounts.c index 5425b35cd..27dd94956 100644 --- a/src/empathy-import-mc4-accounts.c +++ b/src/empathy-import-mc4-accounts.c @@ -368,6 +368,20 @@ failed: goto out; } +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) { diff --git a/src/empathy-import-mc4-accounts.h b/src/empathy-import-mc4-accounts.h index c30b4e505..98fb86916 100644 --- a/src/empathy-import-mc4-accounts.h +++ b/src/empathy-import-mc4-accounts.h @@ -27,6 +27,7 @@ G_BEGIN_DECLS #include gboolean empathy_import_mc4_accounts (EmpathyConnectionManagers *managers); +gboolean empathy_import_mc4_has_imported (void); G_END_DECLS -- cgit v1.2.3