From 7d0353e2687bb60018421e2c9c885c9e9794ae7b Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 28 Jul 2004 02:55:52 +0000 Subject: ** See #57972. 2004-07-27 Not Zed ** See #57972. * message-list.c (search_func): removed. (ml_search_path): new function to just search, not actually change the cursor like e_tree_find does. (message_list_can_select): new function, returns true if the selection specified is possible without changing the selection. (message_list_select): rewritten. (select_path): helper to select a path in a way that 'works reliably'. (message_list_select_next_thread): rewritten to use the table-adapter, so it properly handles arbitrary sorting. * em-folder-view.c (em_folder_view_get_popup_target): setup next/prev flags as appropriate. (emfv_enable_map[]): setup next/prev flags. * em-folder-view.h: added last and first message status bits to folder view select mask. svn path=/trunk/; revision=26749 --- mail/message-list.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mail/message-list.h') diff --git a/mail/message-list.h b/mail/message-list.h index c8ec571ec5..1c09c2ce9f 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -165,8 +165,10 @@ typedef void (*MessageListForeachFunc) (MessageList *message_list, gpointer user_data); typedef enum { - MESSAGE_LIST_SELECT_NEXT = 1, - MESSAGE_LIST_SELECT_PREVIOUS = -1 + MESSAGE_LIST_SELECT_NEXT = 0, + MESSAGE_LIST_SELECT_PREVIOUS = 1, + MESSAGE_LIST_SELECT_DIRECTION = 1, /* direction mask */ + MESSAGE_LIST_SELECT_WRAP = 1<<1, /* option bit */ } MessageListSelectDirection; GtkType message_list_get_type (void); @@ -188,8 +190,8 @@ void message_list_free_uids(MessageList *ml, GPtrArray *uids); gboolean message_list_select (MessageList *message_list, MessageListSelectDirection direction, guint32 flags, - guint32 mask, - gboolean wraparound); + guint32 mask); +gboolean message_list_can_select(MessageList *ml, MessageListSelectDirection direction, guint32 flags, guint32 mask); void message_list_select_uid (MessageList *message_list, const char *uid); -- cgit