From 1ff6054e5ef86550df4e2dba80b47b8e81ab8fd2 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 29 Mar 2001 05:34:26 +0000 Subject: Create a vtrash folder, not a vee folder. 2001-03-29 Not Zed * mail-local.c (init_trash): Create a vtrash folder, not a vee folder. * folder-browser-factory.c (control_activate): Hook in the hide deleted thingy. Removed MessageHideDeleted menu stuff. * message-list.c (message_list_set_hidedeleted): New function, to set if we should hide deleted messages automatically/always. (regen_list_regen): If we have hide deleted messages turned on, then hide them. (main_message_changed): Promote to a folder_changed event with a change list, folder_changed has the optimisations to handle this appropriately. (main_folder_changed): IF we get changes events for deleted/undeleted stuff, change to added/removed events, rebuild if necessary. (message_list_set_folder): Setup the default hidedeleted state to be to hide everything unless it is in a vtrash folder. svn path=/trunk/; revision=9009 --- mail/message-list.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail/message-list.h') diff --git a/mail/message-list.h b/mail/message-list.h index 46739ee519..7d7e6b283b 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -68,6 +68,8 @@ struct _MessageList { /* Are we displaying threaded view? */ gboolean threaded; + /* do we automatically hide deleted messages? */ + gboolean hidedeleted; /* Where the ETree cursor is. */ int cursor_row; @@ -119,6 +121,7 @@ void message_list_hide_uids(MessageList *ml, GPtrArray *uids); void message_list_hide_clear(MessageList *ml); void message_list_set_threaded(MessageList *ml, gboolean threaded); +void message_list_set_hidedeleted(MessageList *ml, gboolean hidedeleted); void message_list_set_search(MessageList *ml, const char *search); char *message_list_get_layout (MessageList *message_list); -- cgit