diff options
author | Not Zed <NotZed@Ximian.com> | 2004-05-22 08:44:40 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-05-22 08:44:40 +0800 |
commit | ccd39c3d9b6392d36f494e97462dcc0a5f31ab9c (patch) | |
tree | e6f9928fa541cc51583c3414c4d6e409aab08238 | |
parent | 235c66446a944cb6921b3474003e4e82e048bee5 (diff) | |
download | gsoc2013-evolution-ccd39c3d9b6392d36f494e97462dcc0a5f31ab9c.tar gsoc2013-evolution-ccd39c3d9b6392d36f494e97462dcc0a5f31ab9c.tar.gz gsoc2013-evolution-ccd39c3d9b6392d36f494e97462dcc0a5f31ab9c.tar.bz2 gsoc2013-evolution-ccd39c3d9b6392d36f494e97462dcc0a5f31ab9c.tar.lz gsoc2013-evolution-ccd39c3d9b6392d36f494e97462dcc0a5f31ab9c.tar.xz gsoc2013-evolution-ccd39c3d9b6392d36f494e97462dcc0a5f31ab9c.tar.zst gsoc2013-evolution-ccd39c3d9b6392d36f494e97462dcc0a5f31ab9c.zip |
** Another unread count bug, #58814.
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.
svn path=/trunk/; revision=26041
-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; |