diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-08-11 00:37:02 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-08-11 00:37:02 +0800 |
commit | bcbb63c59f80eb4e684036c5ef58ab141fb01b03 (patch) | |
tree | 4c2bc22eba265c15a1afe5511fc208db9c5d71f4 /mail/message-list.c | |
parent | 0c8f2908653fdecd2ef5ef8cf7f2333f9bc910c4 (diff) | |
download | gsoc2013-evolution-bcbb63c59f80eb4e684036c5ef58ab141fb01b03.tar.gz gsoc2013-evolution-bcbb63c59f80eb4e684036c5ef58ab141fb01b03.tar.zst gsoc2013-evolution-bcbb63c59f80eb4e684036c5ef58ab141fb01b03.zip |
Update for append_message api change.
2000-08-10 Not Zed <NotZed@HelixCode.com>
* mail-local.c (do_local_reconfigure_folder): Update for
append_message api change.
* message-list.c (message_list_regenerate): Change for search api
change.
(ml_tree_value_at): Add a colour column, based on the colour
assigned in the summary.
(message_list_init_renderers): Init colour column.
svn path=/trunk/; revision=4685
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index e6f37d581b..cdec9b2339 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -276,6 +276,9 @@ ml_tree_value_at (ETreeModel *etm, ETreePath *path, int col, void *model_data) case COL_UNREAD: return GINT_TO_POINTER(!(msg_info->flags & CAMEL_MESSAGE_SEEN)); + + case COL_COLOUR: + return camel_tag_get(&msg_info->user_tags, "colour"); } g_assert_not_reached (); @@ -288,6 +291,7 @@ ml_tree_value_at (ETreeModel *etm, ETreePath *path, int col, void *model_data) case COL_PRIORITY: case COL_ATTACHMENT: case COL_DELETED: + case COL_COLOUR: case COL_UNREAD: case COL_SENT: case COL_RECEIVED: @@ -397,6 +401,9 @@ message_list_init_renderers (MessageList *message_list) gtk_object_set(GTK_OBJECT(message_list->render_text), "bold_column", COL_UNREAD, NULL); + gtk_object_set(GTK_OBJECT(message_list->render_text), + "color_column", COL_COLOUR, + NULL); message_list->render_date = e_cell_text_new ( message_list->table_model, @@ -411,6 +418,9 @@ message_list_init_renderers (MessageList *message_list) gtk_object_set(GTK_OBJECT(message_list->render_date), "bold_column", COL_UNREAD, NULL); + gtk_object_set(GTK_OBJECT(message_list->render_date), + "color_column", COL_COLOUR, + NULL); message_list->render_online_status = e_cell_checkbox_new (); @@ -866,11 +876,7 @@ message_list_regenerate (MessageList *message_list, const char *search) build_flat (message_list, message_list->tree_root, uids); if (search) { - int i; - - for (i = 0; i < uids->len; i++) - g_free (g_ptr_array_index (uids, i)); - g_ptr_array_free (uids, TRUE); + camel_folder_search_free(message_list->folder, uids); } else { camel_folder_free_uids (message_list->folder, uids); } |