From 9ee012a56ba76d0171bc6ae5d9cc86a8bfbf5f35 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 17 Oct 2008 12:47:28 +0000 Subject: Added empathy_import_dialog_accounts_to_import. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1624 --- src/empathy-import-dialog.c | 15 +++++++++++++++ src/empathy-import-dialog.h | 1 + 2 files changed, 16 insertions(+) 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 -- cgit v1.2.3