From 7da638d6aa8f721765a318abb0250133152ae1e3 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Wed, 15 Aug 2001 21:28:59 +0000 Subject: Always remove the idle and return FALSE, instead of returning TRUE if more 2001-08-15 Peter Williams * message-list.c (on_cursor_activated_idle): Always remove the idle and return FALSE, instead of returning TRUE if more than one message is selected. svn path=/trunk/; revision=12075 --- mail/ChangeLog | 6 ++++++ mail/message-list.c | 10 ++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 2221c7c9b0..357c9e53ff 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-08-15 Peter Williams + + * message-list.c (on_cursor_activated_idle): Always remove the + idle and return FALSE, instead of returning TRUE if more than one + message is selected. + 2001-08-15 Jason Leach * mail-tools.c (mail_tool_quote_message): Stop building the quote diff --git a/mail/message-list.c b/mail/message-list.c index a198fe283b..7711130e48 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1978,16 +1978,14 @@ on_cursor_activated_idle (gpointer data) ESelectionModel *esm = e_tree_get_selection_model (message_list->tree); gint selected = e_selection_model_selected_count (esm); - if (selected > 1) { - return TRUE; - } else { + if (selected == 1) { 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 -- cgit v1.2.3