aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-06-27 03:13:24 +0800
committerDan Winship <danw@src.gnome.org>2001-06-27 03:13:24 +0800
commit03d2f262c0d2094b8b4d7fdbeb45adbff0ade372 (patch)
treee4b556a805d300dc7b51a449d62dbd32356b5b27 /mail/component-factory.c
parent1b6c44d638d882e71f0961b4b23f54d01520f237 (diff)
downloadgsoc2013-evolution-03d2f262c0d2094b8b4d7fdbeb45adbff0ade372.tar
gsoc2013-evolution-03d2f262c0d2094b8b4d7fdbeb45adbff0ade372.tar.gz
gsoc2013-evolution-03d2f262c0d2094b8b4d7fdbeb45adbff0ade372.tar.bz2
gsoc2013-evolution-03d2f262c0d2094b8b4d7fdbeb45adbff0ade372.tar.lz
gsoc2013-evolution-03d2f262c0d2094b8b4d7fdbeb45adbff0ade372.tar.xz
gsoc2013-evolution-03d2f262c0d2094b8b4d7fdbeb45adbff0ade372.tar.zst
gsoc2013-evolution-03d2f262c0d2094b8b4d7fdbeb45adbff0ade372.zip
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
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c9
1 files changed, 5 insertions, 4 deletions
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);