diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 9 | ||||
-rw-r--r-- | camel/camel-store.c | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 5eabaa643b..61077a4dac 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,12 @@ +2004-05-22 Not Zed <NotZed@Ximian.com> + + ** Another unread count bug, #58814. + + * camel-store.c (camel_store_class_init): added a folder_opened + event. + (camel_store_get_folder): emit a folder_opened event whenever we + [re] open the physical folder. + 2004-05-21 Jeffrey Stedfast <fejj@novell.com> * providers/imap/camel-imap-store.c (connect_to_server): Added a diff --git a/camel/camel-store.c b/camel/camel-store.c index 14e3d073ee..22d0b1866a 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -114,6 +114,7 @@ camel_store_class_init (CamelStoreClass *camel_store_class) camel_object_class->setv = store_setv; camel_object_class->getv = store_getv; + camel_object_class_add_event(camel_object_class, "folder_opened", NULL); camel_object_class_add_event(camel_object_class, "folder_created", NULL); camel_object_class_add_event(camel_object_class, "folder_deleted", NULL); camel_object_class_add_event(camel_object_class, "folder_renamed", NULL); @@ -279,6 +280,9 @@ camel_store_get_folder (CamelStore *store, const char *folder_name, guint32 flag else camel_object_bag_abort(store->folders, folder_name); } + + if (folder) + camel_object_trigger_event(store, "folder_opened", folder); } return folder; |