diff options
author | Not Zed <NotZed@Ximian.com> | 2004-01-27 12:17:27 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-27 12:17:27 +0800 |
commit | d80cafe84dc7f053c21bb1ddd74a6b45ad3c301c (patch) | |
tree | f49e789c10a76c674fdbb24ee53c37c7c37d9d75 /mail/mail-offline-handler.c | |
parent | 895c471b009d1d592b3a741cbe9b7128fd19b293 (diff) | |
download | gsoc2013-evolution-d80cafe84dc7f053c21bb1ddd74a6b45ad3c301c.tar.gz gsoc2013-evolution-d80cafe84dc7f053c21bb1ddd74a6b45ad3c301c.tar.zst gsoc2013-evolution-d80cafe84dc7f053c21bb1ddd74a6b45ad3c301c.zip |
fix the parent-finding logic.
2004-01-27 Not Zed <NotZed@Ximian.com>
* em-folder-tree-model.c (folder_renamed): fix the parent-finding
logic.
2004-01-23 Not Zed <NotZed@Ximian.com>
* 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
Diffstat (limited to 'mail/mail-offline-handler.c')
-rw-r--r-- | mail/mail-offline-handler.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 <camel/camel-disco-store.h> +#include "mail-session.h" #include <gtk/gtkmain.h> @@ -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); } } |