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 | |
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')
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/message-list.c | 19 | ||||
-rw-r--r-- | mail/message-list.h | 7 |
3 files changed, 23 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 5926216e13..e03ad42e69 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,7 @@ +2000-05-30 Christopher James Lahey <clahey@helixcode.com> + + * message-list.c, message-list.h: Added bold for unread messages. + 2000-05-30 Jeffrey Stedfast <fejj@helixcode.com> * mail.h: Added a prototype for providers_config() 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); } } diff --git a/mail/message-list.h b/mail/message-list.h index 21d51875f8..1eaa8c9872 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -34,9 +34,12 @@ enum { COL_RECEIVE, COL_TO, COL_SIZE, - COL_DELETED, - COL_LAST + COL_LAST, + + /* Invisible columns */ + COL_DELETED, + COL_UNREAD, }; struct _MessageList { |