From f53bad6e04b4031d489024e4fec8af2b9fce465b Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 17 Jun 2003 17:58:34 +0000 Subject: Don't display an unread icon for a parent message status if it has unread 2003-06-16 Jeffrey Stedfast * 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 --- mail/message-list.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'mail/message-list.c') 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: { -- cgit v1.2.3