diff options
author | Not Zed <NotZed@Ximian.com> | 2004-07-28 10:55:52 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-07-28 10:55:52 +0800 |
commit | 7d0353e2687bb60018421e2c9c885c9e9794ae7b (patch) | |
tree | e8a2ce8d0ab684e668f304e336feb4f0799eb016 /mail/message-list.h | |
parent | 7fcf69af0f8a9019d5114a4741ff1bbf3aa9a3dc (diff) | |
download | gsoc2013-evolution-7d0353e2687bb60018421e2c9c885c9e9794ae7b.tar.gz gsoc2013-evolution-7d0353e2687bb60018421e2c9c885c9e9794ae7b.tar.zst gsoc2013-evolution-7d0353e2687bb60018421e2c9c885c9e9794ae7b.zip |
** See #57972.
2004-07-27 Not Zed <NotZed@Ximian.com>
** 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
Diffstat (limited to 'mail/message-list.h')
-rw-r--r-- | mail/message-list.h | 10 |
1 files changed, 6 insertions, 4 deletions
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); |