From 4459154549f367cb1fa8a89b06e89d8f99abb4e3 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 8 Feb 2001 01:45:37 +0000 Subject: Handle internal camel status return. (receive_done): Remove active 2001-02-07 Not Zed * 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 * 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 --- mail/mail-mt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mail/mail-mt.c') 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 #include "e-util/e-msgport.h" +#include "camel/camel-operation.h" #include #include @@ -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); } -- cgit