diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-08-12 20:48:20 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-08-12 20:51:55 +0800 |
commit | dbb4c2472f54845f131f4df91aa11ec1d852b80a (patch) | |
tree | 6858970f1fa33c78fa23b7879e3af5868f28be75 /mail/message-list.c | |
parent | 2f326f6ca43816ff3bab4f377ae1eaaa4e6bb47d (diff) | |
download | gsoc2013-evolution-dbb4c2472f54845f131f4df91aa11ec1d852b80a.tar.gz gsoc2013-evolution-dbb4c2472f54845f131f4df91aa11ec1d852b80a.tar.zst gsoc2013-evolution-dbb4c2472f54845f131f4df91aa11ec1d852b80a.zip |
Bug 626724 - Folder tree mistakes "mark as unread" as new mail
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index d218c9ed3a..848bef204d 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -3951,6 +3951,16 @@ on_click (ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event, Mess uid = camel_message_info_uid (info); camel_folder_set_message_flags (list->folder, uid, flag, ~flags); + /* Notify the folder tree model that the user has marked a message + * as unread so it doesn't mistake the event as new mail arriving. */ + if (flag == CAMEL_MESSAGE_SEEN) { + EMFolderTreeModel *model; + + model = em_folder_tree_model_get_default (); + em_folder_tree_model_user_marked_unread ( + model, list->folder_uri, 1); + } + if (flag == CAMEL_MESSAGE_SEEN && list->seen_id) { g_source_remove (list->seen_id); list->seen_id = 0; |