[evolution] Remove e_tree_load_expanded_state_xml().



commit 68b0b1022158a2442fffdd67820c1576adfdb9b0
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Jun 20 11:57:41 2013 -0400

    Remove e_tree_load_expanded_state_xml().
    
    Reducing API bloat.  Do this instead:
    
      adapter = e_tree_get_table_adapter (tree);
      e_tree_table_adapter_load_expanded_state_xml (adapter, xml);

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/e-tree.c                                    |   10 ----------
 e-util/e-tree.h                                    |    4 ----
 mail/message-list.c                                |    6 +++---
 4 files changed, 3 insertions(+), 18 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index 310f471..4292d40 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_load_expanded_state_xml
 e_tree_row_count
 e_tree_get_tooltip
 e_tree_force_expanded_state
diff --git a/e-util/e-tree.c b/e-util/e-tree.c
index 9a3d934..77a6c2f 100644
--- a/e-util/e-tree.c
+++ b/e-util/e-tree.c
@@ -2196,16 +2196,6 @@ e_tree_view_to_model_row (ETree *tree,
                return view_row;
 }
 
-void
-e_tree_load_expanded_state_xml (ETree *tree,
-                                xmlDoc *doc)
-{
-       g_return_if_fail (E_IS_TREE (tree));
-       g_return_if_fail (doc != NULL);
-
-       e_tree_table_adapter_load_expanded_state_xml (tree->priv->etta, doc);
-}
-
 /* state: <0 ... collapse; 0 ... no force - use default; >0 ... expand;
  * when using this, be sure to reset to 0 once no forcing is required
  * anymore, aka the build of the tree is done */
diff --git a/e-util/e-tree.h b/e-util/e-tree.h
index a6f1d27..c937e62 100644
--- a/e-util/e-tree.h
+++ b/e-util/e-tree.h
@@ -272,10 +272,6 @@ GdkDragContext *e_tree_drag_begin          (ETree *tree,
 
 gboolean       e_tree_is_dragging              (ETree *tree);
 
-/* Adapter functions */
-void           e_tree_load_expanded_state_xml  (ETree *tree,
-                                                xmlDoc *doc);
-
 gint           e_tree_row_count                (ETree *tree);
 GtkWidget *    e_tree_get_tooltip              (ETree *tree);
 void           e_tree_force_expanded_state     (ETree *tree,
diff --git a/mail/message-list.c b/mail/message-list.c
index a27eaaf..c6bde53 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -1979,9 +1979,9 @@ load_tree_state (MessageList *message_list,
 
        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);
+       if (expand_state != NULL) {
+               e_tree_table_adapter_load_expanded_state_xml (
+                       adapter, expand_state);
        } else if (!message_list->search || !*message_list->search) {
                /* only when not searching */
                gchar *filename;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]