diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-02-16 03:20:38 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-02-16 03:20:38 +0800 |
commit | f89ca302d1bc8cdd0a988121523928b80366441a (patch) | |
tree | 4779cde1691418bccaa93608c7493c6558cd30f6 /camel/providers/vee | |
parent | cb66ad3fe4a2297ea211adfe012dbdf3f875090b (diff) | |
download | gsoc2013-evolution-f89ca302d1bc8cdd0a988121523928b80366441a.tar.gz gsoc2013-evolution-f89ca302d1bc8cdd0a988121523928b80366441a.tar.zst gsoc2013-evolution-f89ca302d1bc8cdd0a988121523928b80366441a.zip |
Emit the folder_created signal here.
2001-02-15 Jeffrey Stedfast <fejj@ximian.com>
* providers/vee/camel-vee-folder.c (camel_vee_folder_new): Emit
the folder_created signal here.
* providers/local/camel-local-folder.c
(camel_local_folder_construct): Emit the folder_created signal.
* providers/local/camel-local-store.c (delete_folder): On error,
free the 'name' string so we don't leak. Also emit the
folder_deleted signal.
* providers/imap/camel-imap-store.c (subscribe_folder): Emit the
folder_created signal.
(unsubscribe_folder): Emit the folder_deleted signal.
* camel-store.c (camel_store_class_init): Added folder_created and
folder_deleted signal defs.
svn path=/trunk/; revision=8246
Diffstat (limited to 'camel/providers/vee')
-rw-r--r-- | camel/providers/vee/camel-vee-folder.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/camel/providers/vee/camel-vee-folder.c b/camel/providers/vee/camel-vee-folder.c index 4f3616ec12..057d227a61 100644 --- a/camel/providers/vee/camel-vee-folder.c +++ b/camel/providers/vee/camel-vee-folder.c @@ -22,6 +22,7 @@ #include "camel-exception.h" #include "camel-vee-folder.h" +#include "camel-store.h" #include "camel-folder-summary.h" #include "camel-mime-message.h" #ifdef DYNAMIC @@ -172,6 +173,7 @@ camel_vee_folder_finalise (CamelObject *obj) CamelFolder * camel_vee_folder_new (CamelStore *parent_store, const char *name, CamelException *ex) { + CamelFolderInfo *fi; CamelFolder *folder; CamelVeeFolder *vf; char *namepart, *searchpart; @@ -201,7 +203,18 @@ camel_vee_folder_new (CamelStore *parent_store, const char *name, CamelException camel_object_unref (CAMEL_OBJECT (folder)); return NULL; } - + + fi = g_new0 (CamelFolderInfo, 1); + fi->full_name = g_strdup (name); + fi->name = g_strdup (name); + fi->url = g_strdup_printf ("vfolder:%s?%s", vf->vname, vf->expression); + fi->unread_message_count = -1; + + camel_object_trigger_event (CAMEL_OBJECT (parent_store), + "folder_created", fi); + + camel_folder_info_free (fi); + return folder; } |