From 0e893f8bc4259f6316ec99b29b825bf5a36b4312 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 3 Jul 2001 17:15:26 +0000 Subject: Prevent folders from appearing to have -1 new messages. Prevent nonactive 2001-07-03 Peter Williams Prevent folders from appearing to have -1 new messages. Prevent nonactive folders from updating the title bar. Make the title bar update when switching to an already-opened folder. * mail-folder-cache.c (update_message_counts): Ignore the value for 'unread' if it is -1. (get_mail_info_receive): Same (mail_folder_cache_note_folderinfo): Same. (get_folder_info): Initialize 'fb' to NULL. (mail_folder_info): Add 'fb' member. (mail_folder_cache_note_fb): Change note_message_list to this. (update_idle): Only update the ShellView if the active folder browser is the same as the one that the MFI references. (mail_folder_cache_set_folder_browser): New function. Use it to set the active folder browser. NULL is okay. (check_for_fb_match): Called from the above. If the MFI has the new folder browser as its view, queue an update. * mail-folder-cache.h: Fix prototypes. * mail-callbacks.c (create_folders): Check if fi->url is nonnull. * folder-browser.c (got_folder): Change to use note_fb instead of note_messge_list. * folder-browser-factory.c (control_activate): Set the folder browser (control_deactivate): Clear it here. (fb_get_svi): Kill some inappropriately cut-n-pasted code. svn path=/trunk/; revision=10755 --- mail/folder-browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/folder-browser.c') diff --git a/mail/folder-browser.c b/mail/folder-browser.c index d9083333cc..c52c9916f1 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -639,7 +639,7 @@ got_folder(char *uri, CamelFolder *folder, void *data) vfolder_register_source (folder); mail_folder_cache_note_folder (fb->uri, folder); - mail_folder_cache_note_message_list (fb->uri, fb->message_list); + mail_folder_cache_note_fb (fb->uri, fb); done: gtk_object_unref (GTK_OBJECT (fb)); -- cgit v1.2.3