diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-31 04:59:12 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-31 04:59:12 +0800 |
commit | f0ec699349a7a516f712b2fc24cd5e72a63d1f0b (patch) | |
tree | 93f6ea81e561b2127b099d5e3b32f1ca26cf8a87 /mail/message-list.c | |
parent | fb9c7055d91ea3b10ca01f3fe3b6bca78db8b8b2 (diff) | |
download | gsoc2013-evolution-f0ec699349a7a516f712b2fc24cd5e72a63d1f0b.tar gsoc2013-evolution-f0ec699349a7a516f712b2fc24cd5e72a63d1f0b.tar.gz gsoc2013-evolution-f0ec699349a7a516f712b2fc24cd5e72a63d1f0b.tar.bz2 gsoc2013-evolution-f0ec699349a7a516f712b2fc24cd5e72a63d1f0b.tar.lz gsoc2013-evolution-f0ec699349a7a516f712b2fc24cd5e72a63d1f0b.tar.xz gsoc2013-evolution-f0ec699349a7a516f712b2fc24cd5e72a63d1f0b.tar.zst gsoc2013-evolution-f0ec699349a7a516f712b2fc24cd5e72a63d1f0b.zip |
Added bold for unread messages.
2000-05-30 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h: Added bold for unread messages.
svn path=/trunk/; revision=3292
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 78f0c41912..8c29995cfe 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -233,6 +233,10 @@ ml_value_at (ETableModel *etm, int col, int row, void *data) retval = GINT_TO_POINTER(!!(msg_info->flags & CAMEL_MESSAGE_DELETED)); break; + case COL_UNREAD: + retval = GINT_TO_POINTER(!(msg_info->flags & CAMEL_MESSAGE_SEEN)); + break; + default: g_assert_not_reached (); } @@ -271,6 +275,7 @@ ml_duplicate_value (ETableModel *etm, int col, const void *value, void *data) case COL_PRIORITY: case COL_ATTACHMENT: case COL_DELETED: + case COL_UNREAD: return (void *) value; case COL_FROM: @@ -295,6 +300,7 @@ ml_free_value (ETableModel *etm, int col, void *value, void *data) case COL_PRIORITY: case COL_ATTACHMENT: case COL_DELETED: + case COL_UNREAD: break; case COL_FROM: @@ -319,6 +325,7 @@ ml_initialize_value (ETableModel *etm, int col, void *data) case COL_PRIORITY: case COL_ATTACHMENT: case COL_DELETED: + case COL_UNREAD: return NULL; case COL_FROM: @@ -344,6 +351,7 @@ ml_value_is_empty (ETableModel *etm, int col, const void *value, void *data) case COL_PRIORITY: case COL_ATTACHMENT: case COL_DELETED: + case COL_UNREAD: return value == NULL; case COL_FROM: @@ -410,6 +418,9 @@ message_list_init_renderers (MessageList *message_list) gtk_object_set(GTK_OBJECT(message_list->render_text), "strikeout_column", COL_DELETED, NULL); + gtk_object_set(GTK_OBJECT(message_list->render_text), + "bold_column", COL_UNREAD, + NULL); message_list->render_online_status = e_cell_checkbox_new (); @@ -535,11 +546,9 @@ message_list_init_header (MessageList *message_list) * of this. */ for (i = 0; i < COL_LAST; i++) { - if (i != COL_DELETED) { - gtk_object_ref (GTK_OBJECT (message_list->table_cols [i])); - e_table_header_add_column (message_list->header_model, - message_list->table_cols [i], i); - } + gtk_object_ref (GTK_OBJECT (message_list->table_cols [i])); + e_table_header_add_column (message_list->header_model, + message_list->table_cols [i], i); } } |