From d80cafe84dc7f053c21bb1ddd74a6b45ad3c301c Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 27 Jan 2004 04:17:27 +0000 Subject: fix the parent-finding logic. 2004-01-27 Not Zed * em-folder-tree-model.c (folder_renamed): fix the parent-finding logic. 2004-01-23 Not Zed * mail-component.c (mail_component_init): add the offline handler interface to the component. (store_go_online, go_online): removed, handled by the offline handler. * mail-offline-handler.c (store_go_online): add the store to the tree model when we go online. svn path=/trunk/; revision=24459 --- mail/mail-offline-handler.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mail/mail-offline-handler.c') diff --git a/mail/mail-offline-handler.c b/mail/mail-offline-handler.c index 6613391a7b..b7cff8b65a 100644 --- a/mail/mail-offline-handler.c +++ b/mail/mail-offline-handler.c @@ -30,7 +30,10 @@ #include "mail-component.h" #include "mail-ops.h" #include "mail-folder-cache.h" -#include "mail.h" +#include "em-folder-tree.h" + +#include +#include "mail-session.h" #include @@ -174,9 +177,11 @@ static void store_go_online (gpointer key, gpointer value, gpointer data) { CamelStore *store = key; - + char *name = value; + if (service_is_relevant (CAMEL_SERVICE (store), FALSE)) { mail_store_set_offline (store, FALSE, NULL, NULL); + em_folder_tree_model_add_store(mail_component_peek_tree_model(mail_component_peek()), store, name); mail_note_store (store, NULL, NULL, NULL); } } -- cgit v1.2.3