aboutsummaryrefslogtreecommitdiffstats
path: root/mail/subscribe-dialog.c
diff options
context:
space:
mode:
authorSam Creasey <sammy@oh.verio.com>2001-07-03 10:56:39 +0800
committerSam Creasy <sammy@src.gnome.org>2001-07-03 10:56:39 +0800
commite1e2d6393df2a7e1af08a18330fe65c49d81d9c9 (patch)
treeef69ef8a56d351818f72533a6ee6b71d244589a6 /mail/subscribe-dialog.c
parentfd6ad06df5c3cf3928f9361d566aaaaffe498d2d (diff)
downloadgsoc2013-evolution-e1e2d6393df2a7e1af08a18330fe65c49d81d9c9.tar.gz
gsoc2013-evolution-e1e2d6393df2a7e1af08a18330fe65c49d81d9c9.tar.zst
gsoc2013-evolution-e1e2d6393df2a7e1af08a18330fe65c49d81d9c9.zip
Added an MailAccountEditorNews, for NNTP configuratuion. Based on
2001-07-02 Sam Creasey <sammy@oh.verio.com> * mail-account-editor-news.c: Added an MailAccountEditorNews, for NNTP configuratuion. Based on MailAccountEditor, but stripped. * Makefile.am: added mail-account-editor-news.c and mail-account-editor-news.h to SOURCES if ENABLE_NNTP is defined. * mail-accounts.c (load_news): Moved this function, and fixed some slight brokenness. (news_edit): Added functional code using MailAccountEditorNews (news_add): Added functional code using news_edit after allocation. * mail-config.glade: news_editor_window widget added. Used by MailAccountEditorNews. * mail-display.c (save_data_cb): Store the pathname used when saving messages so that the next save box will default to the previous path. * message-browser.c (message_browser_new): add signal handler for size_allocate on the message browser. Thus new windows are size as they were last allocated. (message_browser_size_allocate_cb): handler to store allocations. * message-list.c (message_list_setup_etree): connect to the info_changed signals for the state of the message_list->tree. Save the folder state to disk, so that when additional message_lists are created, they are consistant. e.g. the next buttons do the same thing in the browser, and in the message viewer after changing sorting options. * subscribe-dialog.c (build_tree): freeze sc->folder model while building the tree. Not doing so takes a very long time over 40000 newsgroups. svn path=/trunk/; revision=10719
Diffstat (limited to 'mail/subscribe-dialog.c')
-rw-r--r--mail/subscribe-dialog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c
index 34522e6304..b0b49805b9 100644
--- a/mail/subscribe-dialog.c
+++ b/mail/subscribe-dialog.c
@@ -762,12 +762,13 @@ build_tree (SubscribeDialog *sc, CamelStore *store)
return;
}
+ e_tree_memory_freeze(E_TREE_MEMORY(sc->folder_model));
e_tree_memory_node_remove (E_TREE_MEMORY(sc->folder_model), sc->folder_root);
sc->folder_root = e_tree_memory_node_insert (E_TREE_MEMORY(sc->folder_model), NULL,
0, NULL);
-
build_etree_from_folder_info (sc, sc->folder_root, sc->folder_info);
+ e_tree_memory_thaw(E_TREE_MEMORY(sc->folder_model));
camel_exception_free (ex);
}