aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/message-list.c19
-rw-r--r--mail/message-list.h7
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 {