Modified to not use EStorage* functions. I don't even think it *needs* to
2003-11-13 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (context_rule_removed): Modified to not use EStorage* functions. I don't even think it *needs* to remove the folder from the mail-component, the mail-component should just pick it up automagically via CamelStore events. svn path=/trunk/; revision=23333
This commit is contained in:

committed by
Jeffrey Stedfast

parent
79b40b20dd
commit
1627a08174
@ -1,5 +1,10 @@
|
||||
2003-11-13 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* mail-vfolder.c (context_rule_removed): Modified to not use
|
||||
EStorage* functions. I don't even think it *needs* to remove the
|
||||
folder from the mail-component, the mail-component should just
|
||||
pick it up automagically via CamelStore events.
|
||||
|
||||
* em-folder-tree.[c,h]: New folder-tree widget that replaces the
|
||||
shell's folder-tree widget.
|
||||
|
||||
|
@ -676,6 +676,12 @@ mail_component_storages_foreach (MailComponent *component, GHFunc func, void *us
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
mail_component_remove_folder (MailComponent *component, CamelStore *store, const char *path)
|
||||
{
|
||||
/* FIXME: implement me */
|
||||
}
|
||||
|
||||
EMFolderTreeModel *
|
||||
mail_component_get_tree_model (MailComponent *component)
|
||||
{
|
||||
|
@ -82,6 +82,8 @@ void mail_component_storages_foreach (MailComponent *component,
|
||||
GHFunc func,
|
||||
void *data);
|
||||
|
||||
void mail_component_remove_folder (MailComponent *component, CamelStore *store, const char *path);
|
||||
|
||||
EMFolderTreeModel *mail_component_get_tree_model (MailComponent *component);
|
||||
|
||||
char *em_uri_from_camel (const char *curi);
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include <libgnome/gnome-i18n.h>
|
||||
|
||||
#include "Evolution.h"
|
||||
#include "evolution-storage.h"
|
||||
|
||||
#include "evolution-shell-component.h"
|
||||
#include "mail-component.h"
|
||||
@ -646,11 +645,11 @@ static void context_rule_removed(RuleContext *ctx, FilterRule *rule)
|
||||
|
||||
/* TODO: remove from folder info cache? */
|
||||
|
||||
/* FIXME: is this even necessary? if we remove the folder from
|
||||
* the CamelStore, the tree should pick it up auto-magically
|
||||
* because it listens to CamelStore events... */
|
||||
path = g_strdup_printf("/%s", rule->name);
|
||||
|
||||
/* EPFIXME This leaks, the original code was broken too. */
|
||||
e_storage_removed_folder (mail_component_lookup_storage (mail_component_peek (), vfolder_store), path);
|
||||
|
||||
mail_component_remove_folder (mail_component_peek (), vfolder_store, path);
|
||||
g_free(path);
|
||||
|
||||
LOCK();
|
||||
|
Reference in New Issue
Block a user