From 9b49b3e25a171e87b556fe33d4f9f5fbf1bdae53 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 30 Nov 2000 11:32:50 +0000 Subject: Set threaded view before setting the folder (cleanup some flash ons 2000-11-30 Not Zed * mail-ops.c (cleanup_load_folder): Set threaded view before setting the folder (cleanup some flash ons tartup). * message-list.c (message_list_init): Initialise a mempool for uid string storage. (new_id_from_uid): Added messagelist arg, allocate strings from uid_pool. (new_id_from_subject): Same. Fixed all callers. (remove_node_diff): Dont free uid here. (build_flat_diff): Nor here. (clear_tree): Flush the mempool, rather than freeing the id's directly. (free_tree_ids): Removed, no longer required. (free_tree_ids): Likewise. (message_list_init): Dont connect to the table destroy signal anymore to free the uid table. (message_list_destroy): Free the uid pool here. (*): Use accessors for messageid stuff. (content_is_attachment): Removed, no longer required. (ml_tree_value_at): Get the attachment flag directly from the summary. (ml_tree_value_at): For 'fake' nodes, try and do something better than "?" for from, to, and size. (subtree_size): New function, add up the total size of a subtree. (subtree_earliest): Get the earliest date from a subtree. (ml_tree_value_at): Return earliest date sent/received for fake nodes. (ml_tree_value_at): Return something to mark a fake subject line as a fake subject, although i dont know, i guess this buggers up sorting ... (subtree_size): Check the info node is still there. (subtree_earliest): Same here. (subtree_unread): And here. The info node might vanish if the folder has changed/is changing and we try and redraw stuff while its doing it. (message_list_drag_data_get): Use accessors. svn path=/trunk/; revision=6732 --- mail/message-list.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail/message-list.h') diff --git a/mail/message-list.h b/mail/message-list.h index 99776948b3..400da181c7 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -55,8 +55,9 @@ struct _MessageList { CamelFolder *folder; GHashTable *uid_rowmap; /* key is the uid, value is the row number. - Note: The key string is owned by table_model */ - + Note: The key string is owned by table_model (in uid_pool) */ + struct _EMemPool *uid_pool; /* mempool to hold uid strings */ + char *search; /* current search string */ gboolean threaded; /* are we displaying threaded view? */ -- cgit v1.2.3