aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
author0 <NotZed@Ximian.com>2001-09-21 11:10:02 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-09-21 11:10:02 +0800
commit096dad5a2a78751c8938d3397102c132d7a045a6 (patch)
tree66d726e1e6deb51286ae28ca035107b7013d0c86 /mail/component-factory.c
parent7d17dc2230c4a3b650849ad6e2dcdc5ebf6cb47e (diff)
downloadgsoc2013-evolution-096dad5a2a78751c8938d3397102c132d7a045a6.tar.gz
gsoc2013-evolution-096dad5a2a78751c8938d3397102c132d7a045a6.tar.zst
gsoc2013-evolution-096dad5a2a78751c8938d3397102c132d7a045a6.zip
trigger a folder changed event, so the folderinfocache stuff has a chance
2001-09-20 <NotZed@Ximian.com> * component-factory.c (got_folder): trigger a folder changed event, so the folderinfocache stuff has a chance to see if this is the outbox_folder or not. * mail-folder-cache.c (update_1folder): If we have -1 unread count, pass that as 0 to the shell so it doesn't go bolding. (setup_folder): Same. svn path=/trunk/; revision=13041
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index bcade8d39e..dfad74626d 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -615,7 +615,17 @@ got_folder (char *uri, CamelFolder *folder, void *data)
if (folder) {
*fp = folder;
- camel_object_ref (CAMEL_OBJECT (folder));
+
+ camel_object_ref(CAMEL_OBJECT (folder));
+
+ /* emit a changed event, this is a little hack so that the folderinfo cache
+ will update knowing whether this is the outbox_folder or not, etc */
+ if (folder == outbox_folder) {
+ CamelFolderChangeInfo *changes = camel_folder_change_info_new();
+
+ camel_object_trigger_event((CamelObject *)folder, "folder_changed", changes);
+ camel_folder_change_info_free(changes);
+ }
}
}