From b4d1e6b70e3a083666ac712063b89a88b4eb08cb Mon Sep 17 00:00:00 2001 From: 4 Date: Fri, 5 Oct 2001 00:21:28 +0000 Subject: Show "nn sent" as total in sent folder, rather than just 'total'. 2001-10-04 * folder-browser.c (update_status_bar): Show "nn sent" as total in sent folder, rather than just 'total'. * mail-folder-cache.c (update_1folder): Also show total message count for sent_folder. svn path=/trunk/; revision=13429 --- mail/ChangeLog | 6 ++++++ mail/folder-browser.c | 4 +++- mail/mail-folder-cache.c | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index dd878dc2d1..9020f531d7 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,11 @@ 2001-10-04 + * folder-browser.c (update_status_bar): Show "nn sent" as total in + sent folder, rather than just 'total'. + + * mail-folder-cache.c (update_1folder): Also show total message + count for sent_folder. + * folder-browser-ui.c (folder_browser_setup_property_menu): Do a better job of setting up the name. Also de-sensitise when we can't configure the folder. diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 43363f4930..9299b2fbb9 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -723,7 +723,7 @@ update_status_bar(FolderBrowser *fb) CORBA_Environment ev; int tmp; GString *work; - extern CamelFolder *outbox_folder; + extern CamelFolder *outbox_folder, *sent_folder; if (fb->folder == NULL || fb->message_list == NULL @@ -764,6 +764,8 @@ update_status_bar(FolderBrowser *fb) g_string_append(work, _(", ")); if (fb->folder == outbox_folder) g_string_sprintfa(work, _("%d unsent"), tmp); + else if (fb->folder == sent_folder) + g_string_sprintfa(work, _("%d sent"), tmp); else g_string_sprintfa(work, _("%d total"), tmp); diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c index c99637cb09..2c3474c817 100644 --- a/mail/mail-folder-cache.c +++ b/mail/mail-folder-cache.c @@ -105,14 +105,14 @@ update_1folder(struct _folder_info *mfi, CamelFolderInfo *info) CamelFolder *folder; int unread = -1; CORBA_Environment ev; - extern CamelFolder *outbox_folder; + extern CamelFolder *outbox_folder, *sent_folder; si = mfi->store_info; LOCK(info_lock); folder = mfi->folder; if (folder) { - if (CAMEL_IS_VTRASH_FOLDER (folder) || folder == outbox_folder) { + if (CAMEL_IS_VTRASH_FOLDER (folder) || folder == outbox_folder || folder == sent_folder) { unread = camel_folder_get_message_count(folder); } else { if (info) -- cgit