aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-06-18 01:58:34 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-06-18 01:58:34 +0800
commitf53bad6e04b4031d489024e4fec8af2b9fce465b (patch)
tree1535171cfacfe536c0f00c977667f760044c38ed /mail/message-list.c
parent5bb6c136904667fab98c2f76b0f614048ac5b0a3 (diff)
downloadgsoc2013-evolution-f53bad6e04b4031d489024e4fec8af2b9fce465b.tar.gz
gsoc2013-evolution-f53bad6e04b4031d489024e4fec8af2b9fce465b.tar.zst
gsoc2013-evolution-f53bad6e04b4031d489024e4fec8af2b9fce465b.zip
Don't display an unread icon for a parent message status if it has unread
2003-06-16 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (ml_tree_value_at): Don't display an unread icon for a parent message status if it has unread children but has been read itself. Instead, show that we have unread children by just making the message test bold (which it was already doing, so yay... this was easy). Fixes bug #42630. svn path=/trunk/; revision=21457
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index d694dd2629..fd7d52fe00 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -896,18 +896,7 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, int col, void *model_data)
g_assert (msg_info != NULL);
switch (col){
- case COL_MESSAGE_STATUS: {
- ETreePath child;
-
- /* if a tree is collapsed, then scan its insides for details */
- child = e_tree_model_node_get_first_child(etm, path);
- if (child && !e_tree_node_is_expanded(message_list->tree, path)) {
- if (subtree_unread(message_list, child))
- return GINT_TO_POINTER (4);
- else
- return GINT_TO_POINTER (3);
- }
-
+ case COL_MESSAGE_STATUS:
if (msg_info->flags & CAMEL_MESSAGE_ANSWERED)
return GINT_TO_POINTER (2);
else if (msg_info->flags & CAMEL_MESSAGE_SEEN)
@@ -915,7 +904,6 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, int col, void *model_data)
else
return GINT_TO_POINTER (0);
break;
- }
case COL_FLAGGED:
return GINT_TO_POINTER ((msg_info->flags & CAMEL_MESSAGE_FLAGGED) != 0);
case COL_SCORE: {