aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-10-17 20:47:28 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-10-17 20:47:28 +0800
commit9ee012a56ba76d0171bc6ae5d9cc86a8bfbf5f35 (patch)
treee51fea227cac82079b07000560838a9907da6ed5
parent5a9c84a4fad2df9e4aee9f0dc6bd1b411560ba04 (diff)
downloadgsoc2013-empathy-9ee012a56ba76d0171bc6ae5d9cc86a8bfbf5f35.tar
gsoc2013-empathy-9ee012a56ba76d0171bc6ae5d9cc86a8bfbf5f35.tar.gz
gsoc2013-empathy-9ee012a56ba76d0171bc6ae5d9cc86a8bfbf5f35.tar.bz2
gsoc2013-empathy-9ee012a56ba76d0171bc6ae5d9cc86a8bfbf5f35.tar.lz
gsoc2013-empathy-9ee012a56ba76d0171bc6ae5d9cc86a8bfbf5f35.tar.xz
gsoc2013-empathy-9ee012a56ba76d0171bc6ae5d9cc86a8bfbf5f35.tar.zst
gsoc2013-empathy-9ee012a56ba76d0171bc6ae5d9cc86a8bfbf5f35.zip
Added empathy_import_dialog_accounts_to_import. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1624
-rw-r--r--src/empathy-import-dialog.c15
-rw-r--r--src/empathy-import-dialog.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c
index aa791b014..2387e507c 100644
--- a/src/empathy-import-dialog.c
+++ b/src/empathy-import-dialog.c
@@ -418,6 +418,21 @@ FILENAME:
return accounts;
}
+gboolean
+empathy_import_dialog_accounts_to_import (void)
+{
+ GList *list;
+ gboolean out;
+
+ list = import_dialog_pidgin_load ();
+
+ out = (g_list_length (list) > 0);
+
+ g_list_free (list);
+
+ return out;
+}
+
static gboolean
import_dialog_tree_model_foreach (GtkTreeModel *model,
GtkTreePath *path,
diff --git a/src/empathy-import-dialog.h b/src/empathy-import-dialog.h
index d3ac30a02..5b651f8e9 100644
--- a/src/empathy-import-dialog.h
+++ b/src/empathy-import-dialog.h
@@ -26,6 +26,7 @@
G_BEGIN_DECLS
+gboolean empathy_import_dialog_accounts_to_import (void);
void empathy_import_dialog_show (GtkWindow *parent);
G_END_DECLS