diff options
author | Jason Leach <jleach@ximian.com> | 2001-08-11 04:02:05 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-08-11 04:02:05 +0800 |
commit | acdfbcd161c23f9b5b043e3dd6829e5dbd48a2f0 (patch) | |
tree | 954e87b6a9acd54f2a8f701d47d145f1c1eb7f0f /mail/message-list.c | |
parent | 8a7111747f4910248a71fbd6bdae91788b1bb37c (diff) | |
download | gsoc2013-evolution-acdfbcd161c23f9b5b043e3dd6829e5dbd48a2f0.tar.gz gsoc2013-evolution-acdfbcd161c23f9b5b043e3dd6829e5dbd48a2f0.tar.zst gsoc2013-evolution-acdfbcd161c23f9b5b043e3dd6829e5dbd48a2f0.zip |
Since 'N' keypresses go through here now, use wrap-around selecting.
2001-08-10 Jason Leach <jleach@ximian.com>
* mail-callbacks.c (next_unread_msg): Since 'N' keypresses go
through here now, use wrap-around selecting.
(previous_unread_msg): Same for 'P' here.
* message-list.c (on_cursor_activated_idle): Stop this idle timer
when we have multiple items selected, this keeps it from loading
and then marking the last item in your selection list as read.
Bug #4693.
svn path=/trunk/; revision=11895
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 64c65404a7..e375809459 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1226,7 +1226,7 @@ message_list_construct (MessageList *message_list) message_list->tree = e_tree_scrolled_get_tree(E_TREE_SCROLLED (message_list)); e_tree_root_node_set_visible (message_list->tree, FALSE); - + gtk_signal_connect (GTK_OBJECT (message_list->tree), "cursor_activated", GTK_SIGNAL_FUNC (on_cursor_activated_cmd), message_list); @@ -1969,12 +1969,19 @@ static gboolean on_cursor_activated_idle (gpointer data) { MessageList *message_list = data; + ESelectionModel *esm = e_tree_get_selection_model (message_list->tree); + gint selected = e_selection_model_selected_count (esm); - printf("emitting cursor changed signal, for uid %s\n", message_list->cursor_uid); - gtk_signal_emit(GTK_OBJECT (message_list), message_list_signals[MESSAGE_SELECTED], message_list->cursor_uid); + if (selected > 1) { + return TRUE; + } else { + printf ("emitting cursor changed signal, for uid %s\n", message_list->cursor_uid); + gtk_signal_emit (GTK_OBJECT (message_list), + message_list_signals[MESSAGE_SELECTED], message_list->cursor_uid); - message_list->idle_id = 0; - return FALSE; + message_list->idle_id = 0; + return FALSE; + } } static void |