[evolution/wip/webkit2] Bug 744550 - Always scroll to selected message after messages delete
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 744550 - Always scroll to selected message after messages delete
- Date: Wed, 22 Apr 2015 13:00:28 +0000 (UTC)
commit a499beb5f732c84c812df136f29a7716f2cf02e7
Author: Milan Crha <mcrha redhat com>
Date: Wed Feb 18 13:09:44 2015 +0100
Bug 744550 - Always scroll to selected message after messages delete
mail/e-mail-reader-utils.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index 0692274..3272bce 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -763,6 +763,16 @@ e_mail_reader_mark_selected (EMailReader *reader,
camel_folder_set_message_flags (
folder, uids->pdata[ii], mask, set);
+ /* This function is called on user interaction, thus make sure the message list
+ will scroll to the selected message, which can eventually change due to
+ view filters on the folder. */
+ if (uids->len > 0) {
+ GtkWidget *message_list = e_mail_reader_get_message_list (reader);
+
+ if (message_list)
+ e_tree_show_cursor_after_reflow (E_TREE (message_list));
+ }
+
g_ptr_array_unref (uids);
camel_folder_thaw (folder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]