[evolution/account-mgmt: 45/50] Adapt pst-importer plugin to the new ESource API.



commit e52839009626b7b66cc76b864c38e9632234ba26
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Mar 28 11:39:16 2011 -0400

    Adapt pst-importer plugin to the new ESource API.

 plugins/pst-import/pst-importer.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c
index b330a37..73b9599 100644
--- a/plugins/pst-import/pst-importer.c
+++ b/plugins/pst-import/pst-importer.c
@@ -50,8 +50,10 @@
 #include <libecal/e-cal-component.h>
 
 #include <libedataserver/e-data-server-util.h>
-#include <libedataserverui/e-source-combo-box.h>
+#include <libedataserver/e-source-registry.h>
 #include <libedataserverui/e-client-utils.h>
+#include <libedataserverui/e-source-combo-box.h>
+#include <libedataserverui/e-source-selector-dialog.h>
 
 #include <mail/e-mail-backend.h>
 #include <mail/e-mail-local.h>
@@ -550,7 +552,8 @@ open_client (PstImporter *m,
 
 	m->waiting_open++;
 
-	e_client_utils_open_new (source, source_type, FALSE, m->cancellable,
+	e_client_utils_open_new (
+		source, source_type, FALSE, m->cancellable,
 		e_client_utils_authenticate_handler, NULL,
 		client_opened_cb, m);
 }
@@ -558,6 +561,11 @@ open_client (PstImporter *m,
 static void
 pst_prepare_run (PstImporter *m)
 {
+	ESourceRegistry *registry;
+	ESource *source;
+
+	registry = e_source_registry_get_default ();
+
 	if (GPOINTER_TO_INT (g_datalist_get_data (&m->target->data, "pst-do-addr"))) {
 		open_client (m, E_CLIENT_SOURCE_TYPE_CONTACTS);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]