diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-03-10 19:20:01 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-03-10 19:20:01 +0800 |
commit | 788470113896a3d6c7ff441b0ea031568029f83c (patch) | |
tree | f0d77d836f9c4ebabccd86d35f5f05189441b209 /src/empathy-import-pidgin.c | |
parent | e70e095faa901c8b1aa061ec61a3206178ef47f5 (diff) | |
download | gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.gz gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.bz2 gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.lz gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.xz gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.zst gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.zip |
Make the "Import Accounts" button insensitive if there's nothing to import.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=2665
Diffstat (limited to 'src/empathy-import-pidgin.c')
-rw-r--r-- | src/empathy-import-pidgin.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c index 6c40bccf6..76295c702 100644 --- a/src/empathy-import-pidgin.c +++ b/src/empathy-import-pidgin.c @@ -303,3 +303,19 @@ FILENAME: return accounts; } +gboolean +empathy_import_pidgin_accounts_to_import (void) +{ + gchar *filename; + gboolean out; + GFile *file; + + filename = g_build_filename (g_get_home_dir (), ".purple", "accounts.xml", NULL); + file = g_file_new_for_path (filename); + out = g_file_query_exists (file, NULL); + + g_free (filename); + g_object_unref (file); + + return out; +} |