aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.c
diff options
context:
space:
mode:
author5 <NotZed@Ximian.com>2001-10-06 05:49:17 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-06 05:49:17 +0800
commit5ad20324785610c9e45a5cee5a885e3a00bf78e9 (patch)
tree0be6c1a402a32defeb12fa218d2c897a9ef90f03 /camel/camel-store.c
parenta2d9676982f3bab99567be9516d6b70d9235524a (diff)
downloadgsoc2013-evolution-5ad20324785610c9e45a5cee5a885e3a00bf78e9.tar.gz
gsoc2013-evolution-5ad20324785610c9e45a5cee5a885e3a00bf78e9.tar.zst
gsoc2013-evolution-5ad20324785610c9e45a5cee5a885e3a00bf78e9.zip
Use a folder_subscribed event rather than a folder_created one.
2001-10-05 <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (subscribe_folder): Use a folder_subscribed event rather than a folder_created one. (unsubscribe_folder): Similarly for unsubscribed/deleted. (create_folder): Emit a folder_created event on the folders we added. Not sure hsould probably check which ones are new and which ones are just existing ones? (delete_folder): Emit a folder_deletd event when we've deleted the folder. Part of fix for #11831. * camel-store.c (camel_store_class_init): Added folder_subscribed/unsubscribed events. svn path=/trunk/; revision=13471
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r--camel/camel-store.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 779c900edd..4bc5de3f83 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -77,8 +77,7 @@ static void construct (CamelService *service, CamelSession *session,
static void
camel_store_class_init (CamelStoreClass *camel_store_class)
{
- CamelObjectClass *camel_object_class =
- CAMEL_OBJECT_CLASS (camel_store_class);
+ CamelObjectClass *camel_object_class = CAMEL_OBJECT_CLASS (camel_store_class);
CamelServiceClass *camel_service_class = CAMEL_SERVICE_CLASS(camel_store_class);
parent_class = CAMEL_SERVICE_CLASS (camel_type_get_global_classfuncs (camel_service_get_type ()));
@@ -103,10 +102,10 @@ camel_store_class_init (CamelStoreClass *camel_store_class)
/* virtual method overload */
camel_service_class->construct = construct;
- camel_object_class_declare_event (camel_object_class,
- "folder_created", NULL);
- camel_object_class_declare_event (camel_object_class,
- "folder_deleted", NULL);
+ camel_object_class_declare_event(camel_object_class, "folder_created", NULL);
+ camel_object_class_declare_event(camel_object_class, "folder_deleted", NULL);
+ camel_object_class_declare_event(camel_object_class, "folder_subscribed", NULL);
+ camel_object_class_declare_event(camel_object_class, "folder_unsubscribed", NULL);
}
static void