aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
author2 <NotZed@Ximian.com>2001-10-03 06:03:13 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-03 06:03:13 +0800
commit1747072ed0c4fee3bbfa2e0d96035cd35b201d70 (patch)
treef92bd94d5f2202b10534e7cbf07e52ff4ee4f4bf /camel
parent8d4f5ab1c8b538084e80ccee917168902f92b14e (diff)
downloadgsoc2013-evolution-1747072ed0c4fee3bbfa2e0d96035cd35b201d70.tar
gsoc2013-evolution-1747072ed0c4fee3bbfa2e0d96035cd35b201d70.tar.gz
gsoc2013-evolution-1747072ed0c4fee3bbfa2e0d96035cd35b201d70.tar.bz2
gsoc2013-evolution-1747072ed0c4fee3bbfa2e0d96035cd35b201d70.tar.lz
gsoc2013-evolution-1747072ed0c4fee3bbfa2e0d96035cd35b201d70.tar.xz
gsoc2013-evolution-1747072ed0c4fee3bbfa2e0d96035cd35b201d70.tar.zst
gsoc2013-evolution-1747072ed0c4fee3bbfa2e0d96035cd35b201d70.zip
Go back to using the store url's path, not the toplevel_dir thing.
2001-10-02 <NotZed@Ximian.com> * providers/local/camel-maildir-store.c (get_folder_info): Go back to using the store url's path, not the toplevel_dir thing. * camel-operation.c (camel_operation_progress): Fix the progress logic, so we dont update too often. svn path=/trunk/; revision=13354
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-operation.c6
-rw-r--r--camel/providers/local/camel-maildir-store.c2
3 files changed, 10 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index c6664538be..46f1f8c2cb 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,11 @@
2001-10-02 <NotZed@Ximian.com>
+ * providers/local/camel-maildir-store.c (get_folder_info): Go back
+ to using the store url's path, not the toplevel_dir thing.
+
+ * camel-operation.c (camel_operation_progress): Fix the progress
+ logic, so we dont update too often.
+
* camel-object.c (camel_object_get_hooks): Change the lock to a
recursive e-mutex.
(camel_object_hook_event): Maintain list length of hook list.
diff --git a/camel/camel-operation.c b/camel/camel-operation.c
index 1358cc15ab..e44d7ffde9 100644
--- a/camel/camel-operation.c
+++ b/camel/camel-operation.c
@@ -563,9 +563,9 @@ void camel_operation_progress(CamelOperation *cc, int pc)
s->pc = pc;
now = stamp();
- if (cc->status_update != now
- && s->flags & CAMEL_OPERATION_TRANSIENT
- && s->stamp/16 > now/16)
+ if (cc->status_update == now
+ || (s->flags & CAMEL_OPERATION_TRANSIENT
+ && s->stamp/16 > now/16))
cc = NULL;
else {
s->stamp = cc->status_update = now;
diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c
index 5ed4e4a533..c60b162929 100644
--- a/camel/providers/local/camel-maildir-store.c
+++ b/camel/providers/local/camel-maildir-store.c
@@ -400,7 +400,7 @@ get_folder_info (CamelStore *store, const char *top, guint32 flags, CamelExcepti
visited = g_hash_table_new(inode_hash, inode_equal);
- if (scan_dir(store, visited, local_store->toplevel_dir, top?top:".", flags, NULL, &fi, ex) == -1 && fi != NULL) {
+ if (scan_dir(store, visited, ((CamelService *)local_store)->url->path, top?top:".", flags, NULL, &fi, ex) == -1 && fi != NULL) {
camel_store_free_folder_info_full(store, fi);
fi = NULL;
}