From d60e250a6e858889c7d6e7c1a0d7f0e511a6e320 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 22 Sep 2003 18:53:26 +0000 Subject: implement, we hook into the mail progress reporting stuff by overriding 2003-09-21 Not Zed * mail-session.c (ms_thread_msg_new): implement, we hook into the mail progress reporting stuff by overriding the CamelOperation member with one from a dummy mail_msg. (ms_thread_msg_free): handle freeing. * mail-mt.c (mail_msg_free): mute the camel-operaiton when we free it so we no longer get updates. svn path=/trunk/; revision=22649 --- mail/mail-mt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail/mail-mt.c') diff --git a/mail/mail-mt.c b/mail/mail-mt.c index 66b8d68130..603e55dd50 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -201,8 +201,10 @@ void mail_msg_free(void *msg) MAIL_MT_UNLOCK(mail_msg_lock); - if (m->cancel) + if (m->cancel) { + camel_operation_mute(m->cancel); camel_operation_unref(m->cancel); + } camel_exception_clear(&m->ex); /*g_free(m->priv->what);*/ -- cgit v1.2.3