From 03d2f262c0d2094b8b4d7fdbeb45adbff0ade372 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 26 Jun 2001 19:13:24 +0000 Subject: Don't pop up a progress dialog to say "I already finished this a while * mail-mt.c (op_status_timeout): Don't pop up a progress dialog to say "I already finished this a while ago". * component-factory.c (storage_create_folder): Pass the path prefix to folder_created so it can add it to the folder tree in the right place. * mail-callbacks.c (folder_created): Take a path prefix. svn path=/trunk/; revision=10508 --- mail/component-factory.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index 6865f829b9..a862288093 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -633,7 +633,7 @@ storage_create_folder (EvolutionStorage *storage, gpointer user_data) { CamelStore *store = user_data; - char *name; + char *prefix, *name; CamelURL *url; CamelException ex; CamelFolderInfo *fi; @@ -648,9 +648,8 @@ storage_create_folder (EvolutionStorage *storage, camel_exception_init (&ex); if (*parent_physical_uri) { url = camel_url_new (parent_physical_uri, NULL); - if (!url) { + if (!url) return EVOLUTION_STORAGE_ERROR_INVALID_URI; - } fi = camel_store_create_folder (store, url->path + 1, name, &ex); camel_url_free (url); @@ -666,7 +665,9 @@ storage_create_folder (EvolutionStorage *storage, if (camel_store_supports_subscriptions (store)) camel_store_subscribe_folder (store, fi->full_name, NULL); - folder_created (store, fi); + prefix = g_strndup (path, name - path - 1); + folder_created (store, prefix, fi); + g_free (prefix); camel_store_free_folder_info (store, fi); -- cgit v1.2.3