aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-24 01:45:13 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-24 06:18:48 +0800
commit9d3432812718541748315d119b22960c190a2ffd (patch)
tree0502089086ce5b51d0648c5afe37629e84afb451 /src
parentafd7de0052654752aa60edc8dddfd628eaa49ce6 (diff)
downloadgsoc2013-empathy-9d3432812718541748315d119b22960c190a2ffd.tar
gsoc2013-empathy-9d3432812718541748315d119b22960c190a2ffd.tar.gz
gsoc2013-empathy-9d3432812718541748315d119b22960c190a2ffd.tar.bz2
gsoc2013-empathy-9d3432812718541748315d119b22960c190a2ffd.tar.lz
gsoc2013-empathy-9d3432812718541748315d119b22960c190a2ffd.tar.xz
gsoc2013-empathy-9d3432812718541748315d119b22960c190a2ffd.tar.zst
gsoc2013-empathy-9d3432812718541748315d119b22960c190a2ffd.zip
Add api to ask if we have importer our mc4 accounts
Diffstat (limited to 'src')
-rw-r--r--src/empathy-import-mc4-accounts.c14
-rw-r--r--src/empathy-import-mc4-accounts.h1
2 files changed, 15 insertions, 0 deletions
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
@@ -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 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 <libempathy/empathy-connection-managers.h>
gboolean empathy_import_mc4_accounts (EmpathyConnectionManagers *managers);
+gboolean empathy_import_mc4_has_imported (void);
G_END_DECLS