aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt1
-rw-r--r--e-util/e-tree.c9
-rw-r--r--e-util/e-tree.h2
-rw-r--r--mail/message-list.c5
4 files changed, 4 insertions, 13 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt
index aa20596b81..d9b5b1c309 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4207,7 +4207,6 @@ e_tree_drag_source_set
e_tree_drag_source_unset
e_tree_drag_begin
e_tree_is_dragging
-e_tree_save_expanded_state
e_tree_load_expanded_state
e_tree_save_expanded_state_xml
e_tree_load_expanded_state_xml
diff --git a/e-util/e-tree.c b/e-util/e-tree.c
index edca492183..e0df268fc6 100644
--- a/e-util/e-tree.c
+++ b/e-util/e-tree.c
@@ -2197,15 +2197,6 @@ e_tree_view_to_model_row (ETree *tree,
}
void
-e_tree_save_expanded_state (ETree *tree,
- gchar *filename)
-{
- g_return_if_fail (E_IS_TREE (tree));
-
- e_tree_table_adapter_save_expanded_state (tree->priv->etta, filename);
-}
-
-void
e_tree_load_expanded_state (ETree *tree,
gchar *filename)
{
diff --git a/e-util/e-tree.h b/e-util/e-tree.h
index 438207b35a..045b30769b 100644
--- a/e-util/e-tree.h
+++ b/e-util/e-tree.h
@@ -273,8 +273,6 @@ GdkDragContext *e_tree_drag_begin (ETree *tree,
gboolean e_tree_is_dragging (ETree *tree);
/* Adapter functions */
-void e_tree_save_expanded_state (ETree *tree,
- gchar *filename);
void e_tree_load_expanded_state (ETree *tree,
gchar *filename);
diff --git a/mail/message-list.c b/mail/message-list.c
index bb3c30b50e..cddaac9110 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -1945,6 +1945,7 @@ static void
save_tree_state (MessageList *message_list,
CamelFolder *folder)
{
+ ETreeTableAdapter *adapter;
gchar *filename;
if (folder == NULL)
@@ -1953,8 +1954,10 @@ save_tree_state (MessageList *message_list,
if (message_list->search != NULL && *message_list->search != '\0')
return;
+ adapter = e_tree_get_table_adapter (E_TREE (message_list));
+
filename = mail_config_folder_to_cachename (folder, "et-expanded-");
- e_tree_save_expanded_state (E_TREE (message_list), filename);
+ e_tree_table_adapter_save_expanded_state (adapter, filename);
g_free (filename);
message_list->priv->any_row_changed = FALSE;