diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-03-13 00:37:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-03-13 00:37:54 +0800 |
commit | a9bdc7c5dccb80c2c9ca1c5b4a03f6988c7d863e (patch) | |
tree | 80cd98c6292d978816d3d74554edfabf7b7d71f3 /mail | |
parent | 298d5a14c58c67daee32a0be55d48de7cac7cd80 (diff) | |
download | gsoc2013-evolution-a9bdc7c5dccb80c2c9ca1c5b4a03f6988c7d863e.tar gsoc2013-evolution-a9bdc7c5dccb80c2c9ca1c5b4a03f6988c7d863e.tar.gz gsoc2013-evolution-a9bdc7c5dccb80c2c9ca1c5b4a03f6988c7d863e.tar.bz2 gsoc2013-evolution-a9bdc7c5dccb80c2c9ca1c5b4a03f6988c7d863e.tar.lz gsoc2013-evolution-a9bdc7c5dccb80c2c9ca1c5b4a03f6988c7d863e.tar.xz gsoc2013-evolution-a9bdc7c5dccb80c2c9ca1c5b4a03f6988c7d863e.tar.zst gsoc2013-evolution-a9bdc7c5dccb80c2c9ca1c5b4a03f6988c7d863e.zip |
Prevent "message selected" timeouts from piling up.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-reader.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index 1a7df0ed07..9fa6ea0f69 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -1986,13 +1986,19 @@ mail_reader_message_selected_cb (EMailReader *reader, if (!store_async && priv->retrieving_message_operation_id > 0) mail_msg_cancel (priv->retrieving_message_operation_id); - /* Then cancel the seen timer. */ + /* Cancel the seen timer. */ message_list = MESSAGE_LIST (e_mail_reader_get_message_list (reader)); if (message_list && message_list->seen_id) { g_source_remove (message_list->seen_id); message_list->seen_id = 0; } + /* Cancel the message selected timer. */ + if (priv->message_selected_timeout_id > 0) { + g_source_remove (priv->message_selected_timeout_id); + priv->message_selected_timeout_id = 0; + } + source_id = g_timeout_add ( 100, (GSourceFunc) mail_reader_message_selected_timeout_cb, reader); |