From dbf748d3d227da9903dfd0cbd0ddcfaa6fc2dd1a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 14 Mar 2003 18:16:44 +0000 Subject: Update for EvolutionStorage change * component-factory.c (storage_connect, storage_connected): Update for EvolutionStorage change svn path=/trunk/; revision=20299 --- mail/component-factory.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index 5592c4e0a0..02f4492402 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -1318,24 +1318,20 @@ storage_xfer_folder (EvolutionStorage *storage, } static void -storage_connected (CamelStore *store, CamelFolderInfo *info, void *storage) +storage_connected (CamelStore *store, CamelFolderInfo *info, void *listener) { - if (!info) { - /* Let it know the connection failed by calling - * has_subfolders again. - */ - evolution_storage_has_subfolders (storage, "/", - _("Connecting...")); - } + notify_listener (listener, (info ? GNOME_Evolution_Storage_OK : + GNOME_Evolution_Storage_GENERIC_ERROR)); } static void storage_connect (EvolutionStorage *storage, + const Bonobo_Listener listener, const char *path, CamelStore *store) { mail_note_store (CAMEL_STORE (store), storage, CORBA_OBJECT_NIL, - storage_connected, storage); + storage_connected, listener); } static void -- cgit v1.2.3