diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-20 23:29:19 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-21 03:31:52 +0800 |
commit | 63a53b5aa4e394b771d9d235e55c3098a70e5fad (patch) | |
tree | c5c4580af63943711cf8cd984e3a644e76517b73 | |
parent | a8bb464bf5a0c994a67ae46751a480ec03c6d208 (diff) | |
download | gsoc2013-evolution-63a53b5aa4e394b771d9d235e55c3098a70e5fad.tar gsoc2013-evolution-63a53b5aa4e394b771d9d235e55c3098a70e5fad.tar.gz gsoc2013-evolution-63a53b5aa4e394b771d9d235e55c3098a70e5fad.tar.bz2 gsoc2013-evolution-63a53b5aa4e394b771d9d235e55c3098a70e5fad.tar.lz gsoc2013-evolution-63a53b5aa4e394b771d9d235e55c3098a70e5fad.tar.xz gsoc2013-evolution-63a53b5aa4e394b771d9d235e55c3098a70e5fad.tar.zst gsoc2013-evolution-63a53b5aa4e394b771d9d235e55c3098a70e5fad.zip |
Remove e_tree_save_expanded_state().
Reducing API bloat. Do this instead:
adapter = e_tree_get_table_adapter (tree);
e_tree_table_adapter_save_expanded_state (adapter, filename);
-rw-r--r-- | doc/reference/evolution-util/evolution-util-sections.txt | 1 | ||||
-rw-r--r-- | e-util/e-tree.c | 9 | ||||
-rw-r--r-- | e-util/e-tree.h | 2 | ||||
-rw-r--r-- | mail/message-list.c | 5 |
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; |