aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-08 09:45:37 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-08 09:45:37 +0800
commit4459154549f367cb1fa8a89b06e89d8f99abb4e3 (patch)
treec6d10940b9fbe3210b216c94305d8f160906d2f3 /mail/mail-mt.c
parent49f8a687a41e635cd83807d33c74afe8e55fb3df (diff)
downloadgsoc2013-evolution-4459154549f367cb1fa8a89b06e89d8f99abb4e3.tar.gz
gsoc2013-evolution-4459154549f367cb1fa8a89b06e89d8f99abb4e3.tar.zst
gsoc2013-evolution-4459154549f367cb1fa8a89b06e89d8f99abb4e3.zip
Handle internal camel status return. (receive_done): Remove active
2001-02-07 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (operation_status): Handle internal camel status return. (receive_done): Remove active download when done. (mail_receive_uri): Initiate download of a single source, with no gui. (build_dialogue): Mark any new items as real active downloads. (do_show_status): Make the progress bar optional. 2001-02-06 Not Zed <NotZed@Ximian.com> * mail-send-recv.c: camel_cancel->camel_operation. * mail-ops.old.c: camel_cancel->camel_operation. * mail-ops.c: camel_cancel->camel_operation. * mail-mt.c: camel_cancel->camel_operation. * mail-callbacks.c (stop_threads): camel_cancel->camel_operation. * mail-mt.h: CamelCancel->CamelOperation. svn path=/trunk/; revision=8096
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index bec769b415..ec2529448d 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -3,6 +3,7 @@
#include <unistd.h>
#include "e-util/e-msgport.h"
+#include "camel/camel-operation.h"
#include <glib.h>
#include <pthread.h>
@@ -40,7 +41,7 @@ void *mail_msg_new(mail_msg_op_t *ops, EMsgPort *reply_port, size_t size)
msg->ops = ops;
msg->seq = mail_msg_seq++;
msg->msg.reply_port = reply_port;
- msg->cancel = camel_cancel_new();
+ msg->cancel = camel_operation_new(NULL, NULL); /* FIXME: report status somehow? */
camel_exception_init(&msg->ex);
g_hash_table_insert(mail_msg_active, (void *)msg->seq, msg);
@@ -64,7 +65,7 @@ void mail_msg_free(void *msg)
MAIL_MT_UNLOCK(mail_msg_lock);
- camel_cancel_unref(m->cancel);
+ camel_operation_unref(m->cancel);
camel_exception_clear(&m->ex);
g_free(m);
}
@@ -101,7 +102,7 @@ void mail_msg_cancel(unsigned int msgid)
m = g_hash_table_lookup(mail_msg_active, (void *)msgid);
if (m)
- camel_cancel_cancel(m->cancel);
+ camel_operation_cancel(m->cancel);
MAIL_MT_UNLOCK(mail_msg_lock);
}