diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-20 23:49:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-21 03:31:52 +0800 |
commit | 40da203f43caf0b2b4e49f20dbfa3b318a6b3e9f (patch) | |
tree | c3f26d5cddf180b84250f2f81dacd05ed65cd38b /mail | |
parent | 63a53b5aa4e394b771d9d235e55c3098a70e5fad (diff) | |
download | gsoc2013-evolution-40da203f43caf0b2b4e49f20dbfa3b318a6b3e9f.tar gsoc2013-evolution-40da203f43caf0b2b4e49f20dbfa3b318a6b3e9f.tar.gz gsoc2013-evolution-40da203f43caf0b2b4e49f20dbfa3b318a6b3e9f.tar.bz2 gsoc2013-evolution-40da203f43caf0b2b4e49f20dbfa3b318a6b3e9f.tar.lz gsoc2013-evolution-40da203f43caf0b2b4e49f20dbfa3b318a6b3e9f.tar.xz gsoc2013-evolution-40da203f43caf0b2b4e49f20dbfa3b318a6b3e9f.tar.zst gsoc2013-evolution-40da203f43caf0b2b4e49f20dbfa3b318a6b3e9f.zip |
Remove e_tree_load_expanded_state().
Reducing API bloat. Do this instead:
adapter = e_tree_get_table_adapter (tree);
e_tree_table_adapter_load_expanded_state (adapter, filename);
Diffstat (limited to 'mail')
-rw-r--r-- | mail/message-list.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index cddaac9110..97e0d053e5 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1968,9 +1968,13 @@ load_tree_state (MessageList *message_list, CamelFolder *folder, xmlDoc *expand_state) { + ETreeTableAdapter *adapter; + if (folder == NULL) return; + adapter = e_tree_get_table_adapter (E_TREE (message_list)); + if (expand_state) { e_tree_load_expanded_state_xml ( E_TREE (message_list), expand_state); @@ -1980,7 +1984,7 @@ load_tree_state (MessageList *message_list, filename = mail_config_folder_to_cachename ( folder, "et-expanded-"); - e_tree_load_expanded_state (E_TREE (message_list), filename); + e_tree_table_adapter_load_expanded_state (adapter, filename); g_free (filename); } |