[evolution] e-mail-shell-view.c: Avoid e_tree_set_state().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] e-mail-shell-view.c: Avoid e_tree_set_state().
- Date: Tue, 2 Jul 2013 15:29:08 +0000 (UTC)
commit 23d786f06ad5c0a2827e22a129db7fbb1693b537
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Jul 1 15:20:44 2013 -0400
e-mail-shell-view.c: Avoid e_tree_set_state().
Create our own ETableState and call e_table_state_load_from_string()
followed by e_tree_set_state_object().
modules/mail/e-mail-shell-view.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index a5e5d62..a4d5e99 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -201,8 +201,18 @@ mail_shell_view_show_search_results_folder (EMailShellView *mail_shell_view,
e_mail_reader_set_folder (reader, folder);
view_instance = e_mail_view_get_view_instance (mail_view);
- if (!view_instance || !gal_view_instance_exists (view_instance))
- e_tree_set_state (E_TREE (message_list), SEARCH_RESULTS_STATE);
+ if (!view_instance || !gal_view_instance_exists (view_instance)) {
+ ETree *tree;
+ ETableState *state;
+ ETableSpecification *specification;
+
+ tree = E_TREE (message_list);
+ specification = e_tree_get_spec (tree);
+ state = e_table_state_new (specification);
+ e_table_state_load_from_string (state, SEARCH_RESULTS_STATE);
+ e_tree_set_state_object (tree, state);
+ g_object_unref (state);
+ }
message_list_thaw (MESSAGE_LIST (message_list));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]