aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-05-14 21:24:41 +0800
committerMilan Crha <mcrha@redhat.com>2012-05-14 21:24:41 +0800
commit8d48eaf598c2444efbc056286d2b9f2108fc258e (patch)
tree9135aeb4856eaafc46d9a022e4a944f9fb8b605f
parent59ba5e620d20c8db4b02f7ae180536da1b5d09d5 (diff)
downloadgsoc2013-evolution-8d48eaf598c2444efbc056286d2b9f2108fc258e.tar.gz
gsoc2013-evolution-8d48eaf598c2444efbc056286d2b9f2108fc258e.tar.zst
gsoc2013-evolution-8d48eaf598c2444efbc056286d2b9f2108fc258e.zip
Bug #669674 - EMailBrowser doesn't copy search settings
-rw-r--r--mail/e-mail-reader-utils.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index 350e97a102..afc7e3748c 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -351,6 +351,8 @@ copy_tree_state (EMailReader *src_reader,
if (state)
e_tree_set_state (E_TREE (des_mlist), state);
g_free (state);
+
+ message_list_set_search (MESSAGE_LIST (des_mlist), MESSAGE_LIST (src_mlist)->search);
}
guint
@@ -423,15 +425,23 @@ e_mail_reader_open_selected (EMailReader *reader)
for (ii = 0; ii < views->len; ii++) {
const gchar *uid = views->pdata[ii];
GtkWidget *browser;
+ MessageList *ml;
browser = e_mail_browser_new (backend, folder, uid,
EM_FORMAT_WRITE_MODE_NORMAL);
+
e_mail_reader_set_folder (E_MAIL_READER (browser), folder);
e_mail_reader_set_message (E_MAIL_READER (browser), uid);
+
+ ml = MESSAGE_LIST (e_mail_reader_get_message_list (E_MAIL_READER (browser)));
+ message_list_freeze (ml);
+
copy_tree_state (reader, E_MAIL_READER (browser));
e_mail_reader_set_group_by_threads (
E_MAIL_READER (browser),
e_mail_reader_get_group_by_threads (reader));
+
+ message_list_thaw (ml);
gtk_widget_show (browser);
}