From 73c74dd70d7e023cc24f7e28d52417b3c4e72805 Mon Sep 17 00:00:00 2001 From: 9 Date: Wed, 19 Sep 2001 08:29:13 +0000 Subject: General cleanup of mail debug printfs. 2001-09-19 * General cleanup of mail debug printfs. * mail-folder-cache.[ch]: Completely rewritten. Removed all calls to the old code everywhere they were used. Nuff said. * folder-browser.h: Add shell_view to folder_browser & api to set it. * folder-browser-factory.c (control_activate): Set the shell-view on the folder_browser. (control_deactivate): And clear it here. * folder-browser.c (folder_browser_destroy): Unhook from changed events on the folder before giving it away. (got_folder): Hook onto the folder-changed events. (folder_changed): Event hook proxy for folder_changed events (main_folder_changed): And the main code version. (update_status_bar): And the one that actually does the work. (on_selection_changed): Also call update_status_bar() to update the selection count. (folder_browser_set_shell_view): Implement function to set the shell_view on the folder_browser. (folder_browser_destroy): Release the shell_view here too. * mail-tools.c (mail_tool_uri_to_folder): Dont 'note' the new folder if its from a file: url, this is handled by hte local store (yeeruughck). * mail-local.c (mls_init): (free_info): (mls_finalise): Setup init/finalise funcs for the folderinfo hash. (local_storage_removed_folder_cb): re-enable. 2001-09-18 * mail-local.c (MailLocalStore): Add a hash table to store uri<>folderinfo data. (mail_local_store_add_folder): Add a new folderinfo to our hash. (mail_local_store_remove_folder): Remove a folder by uri. (storage_listener_startup): Add this store to those monitored by the folder tree. svn path=/trunk/; revision=12974 --- mail/folder-browser-factory.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mail/folder-browser-factory.c') diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index a7c45d822d..e0f808f149 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -92,8 +92,7 @@ control_activate (BonoboControl *control, folder_browser_ui_add_list (fb); folder_browser_ui_add_message (fb); - mail_folder_cache_set_shell_view (fb_get_svi (control)); - mail_folder_cache_set_folder_browser (fb); + folder_browser_set_shell_view(fb, fb_get_svi (control)); if (fb->folder) mail_refresh_folder (fb->folder, NULL, NULL); @@ -104,8 +103,6 @@ control_deactivate (BonoboControl *control, BonoboUIComponent *uic, FolderBrowser *fb) { - mail_folder_cache_set_folder_browser (NULL); - folder_browser_ui_rm_list (fb); folder_browser_ui_rm_all (fb); @@ -113,6 +110,7 @@ control_deactivate (BonoboControl *control, mail_sync_folder (fb->folder, NULL, NULL); folder_browser_set_ui_component (fb, NULL); + folder_browser_set_shell_view (fb, CORBA_OBJECT_NIL); } static void -- cgit