diff options
author | 4 <NotZed@Ximian.com> | 2001-10-05 08:21:28 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-10-05 08:21:28 +0800 |
commit | b4d1e6b70e3a083666ac712063b89a88b4eb08cb (patch) | |
tree | 1df0791ad13b3f426ba25bdfc413e781f7c23f78 /mail | |
parent | c5f392ca0e8b878206a012da11522125e1d86342 (diff) | |
download | gsoc2013-evolution-b4d1e6b70e3a083666ac712063b89a88b4eb08cb.tar gsoc2013-evolution-b4d1e6b70e3a083666ac712063b89a88b4eb08cb.tar.gz gsoc2013-evolution-b4d1e6b70e3a083666ac712063b89a88b4eb08cb.tar.bz2 gsoc2013-evolution-b4d1e6b70e3a083666ac712063b89a88b4eb08cb.tar.lz gsoc2013-evolution-b4d1e6b70e3a083666ac712063b89a88b4eb08cb.tar.xz gsoc2013-evolution-b4d1e6b70e3a083666ac712063b89a88b4eb08cb.tar.zst gsoc2013-evolution-b4d1e6b70e3a083666ac712063b89a88b4eb08cb.zip |
Show "nn sent" as total in sent folder, rather than just 'total'.
2001-10-04 <NotZed@Ximian.com>
* 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
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/folder-browser.c | 4 | ||||
-rw-r--r-- | 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 <NotZed@Ximian.com> + * 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) |