From 9c21067261d2af663d762c7f655eea1a7573f1e9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 16 Jun 2000 23:11:10 +0000 Subject: new function to do a uid to row mapping. (mark_msg_seen, select_msg, * message-list.c (get_message_row): new function to do a uid to row mapping. (mark_msg_seen, select_msg, message_changed, message_list_set_folder): Update for Camel flag changes. (on_cursor_change_cmd): Rename "row_to_select" to "selected_row", and keep a "selected_uid" as well. * mail-ops.c (composer_send_cb): Update for Camel flag changes, and fix some memory-handling bugs. (Free the post_send_data when the composer is destroyed, not when the user clicks "send", which could happen never, or more than once.) (delete_msg): Update for Camel flag changes, and fix the "holding down the delete key skips some messages" bug. svn path=/trunk/; revision=3600 --- mail/message-list.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail/message-list.h') diff --git a/mail/message-list.h b/mail/message-list.h index 971aa6c37a..f40263407d 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -65,6 +65,7 @@ struct _MessageList { CamelFolder *folder; GPtrArray *summary_table; /* the summary of all messages */ + GHashTable *uid_rowmap; char *search; /* search string */ /* FIXME: This should use a better format ... */ @@ -72,8 +73,10 @@ struct _MessageList { int match_count; GPtrArray *summary_search_cache; /* summary info cache for searches */ + int selected_row; + const char *selected_uid; + /* used by the idle-call to select a row */ - int row_to_select; guint idle_id; } ; -- cgit v1.2.3