aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-22 08:44:40 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-22 08:44:40 +0800
commitccd39c3d9b6392d36f494e97462dcc0a5f31ab9c (patch)
treee6f9928fa541cc51583c3414c4d6e409aab08238 /camel/camel-store.c
parent235c66446a944cb6921b3474003e4e82e048bee5 (diff)
downloadgsoc2013-evolution-ccd39c3d9b6392d36f494e97462dcc0a5f31ab9c.tar.gz
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
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r--camel/camel-store.c4
1 files changed, 4 insertions, 0 deletions
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;