From 2872871ac0327cda2fe74f8e81c6fcdfb7064bb6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 12 Jul 2000 19:28:50 +0000 Subject: Use mbox_set_message_flags () instead of setting the flags by hand. This 2000-07-12 Jeffrey Stedfast * providers/mbox/camel-mbox-folder.c (mbox_delete_message): Use mbox_set_message_flags () instead of setting the flags by hand. This fixes the problem of the "message_changed" signal not being emitted at the correct time. * providers/imap/camel-imap-folder.c: "folder_changed" signals should pass a third argument (which is ignored). * camel-folder.c: Undo gtk signal emits done in set_flags and expunge. (move_message_to): (copy_message_to): Create info as a const CamelMessageInfo svn path=/trunk/; revision=4118 --- camel/camel-folder.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'camel/camel-folder.c') diff --git a/camel/camel-folder.c b/camel/camel-folder.c index a0f5e9d038..e7af6f6d37 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -569,11 +569,6 @@ camel_folder_expunge (CamelFolder *folder, CamelException *ex) g_return_if_fail (CAMEL_IS_FOLDER (folder)); CF_CLASS (folder)->expunge (folder, ex); - - if (! (camel_exception_is_set (ex))) { - gtk_signal_emit (GTK_OBJECT (folder), - signals[FOLDER_CHANGED], 0); - } } @@ -733,11 +728,6 @@ camel_folder_set_message_flags (CamelFolder *folder, const char *uid, g_return_if_fail (CAMEL_IS_FOLDER (folder)); CF_CLASS (folder)->set_message_flags (folder, uid, flags, set, ex); - - if (! (camel_exception_is_set (ex))) { - gtk_signal_emit (GTK_OBJECT (folder), - signals[MESSAGE_CHANGED], uid); - } } @@ -799,11 +789,6 @@ camel_folder_set_message_user_flag (CamelFolder *folder, const char *uid, CF_CLASS (folder)->set_message_user_flag (folder, uid, name, value, ex); - - if (! (camel_exception_is_set (ex))) { - gtk_signal_emit (GTK_OBJECT (folder), - signals[MESSAGE_CHANGED], uid); - } } @@ -1096,7 +1081,7 @@ copy_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, CamelException *ex) { CamelMimeMessage *msg; - CamelMessageInfo *info; + const CamelMessageInfo *info; /* Default implementation. */ @@ -1142,7 +1127,7 @@ move_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, CamelException *ex) { CamelMimeMessage *msg; - CamelMessageInfo *info; + const CamelMessageInfo *info; /* Default implementation. */ -- cgit