diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-04-07 10:46:46 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-04-07 10:46:46 +0800 |
commit | 6f9d514d205215465b89deb4db28f6ecb403dff5 (patch) | |
tree | e58ab8e27ce274599d05357254f0df8b92ea722f /mail/mail-component.c | |
parent | 271d15aab627b71eebacbf0b3b1219928707336b (diff) | |
download | gsoc2013-evolution-6f9d514d205215465b89deb4db28f6ecb403dff5.tar.gz gsoc2013-evolution-6f9d514d205215465b89deb4db28f6ecb403dff5.tar.zst gsoc2013-evolution-6f9d514d205215465b89deb4db28f6ecb403dff5.zip |
** Fixes bug #383953
2007-04-06 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #383953
* em-folder-properties.c (emfp_get_folder_item):
Show unread messages before total messages.
* mail-component.c (view_changed):
Show unread or selected messages before total messages.
svn path=/trunk/; revision=33396
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c index c91096eec0..4f06665fa9 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -544,6 +544,9 @@ view_changed(EMFolderView *emfv, EComponentView *component_view) || g_ascii_strcasecmp(emfv->folder->full_name, ".") == 0) bits |= 8; + if (selected->len > 1) + g_string_append_printf(tmp, ngettext ("%d selected, ", "%d selected, ", selected->len), selected->len); + if (bits == 1) g_string_append_printf(tmp, ngettext ("%d draft", "%d drafts", visible), visible); else if (bits == 2) @@ -553,13 +556,11 @@ view_changed(EMFolderView *emfv, EComponentView *component_view) else { if (!emfv->hide_deleted) visible += deleted; + if (unread && selected->len <= 1) + g_string_append_printf(tmp, ngettext ("%d unread, ", "%d unread, ", unread), unread); g_string_append_printf(tmp, ngettext ("%d total", "%d total", visible), visible); - if (unread && selected->len <=1) - g_string_append_printf(tmp, ngettext (", %d unread", ", %d unread", unread), unread); } - if (selected->len > 1) - g_string_append_printf(tmp, ngettext (", %d selected", ", %d selected", selected->len), selected->len); message_list_free_uids(emfv->list, selected); } |