aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-20 22:54:41 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-21 03:31:51 +0800
commit43ffc445dd3ce93f3129b517ebe6ea6f3da25f18 (patch)
treec5600afc3b887e365235503a7f462d2b8e3c13bf /e-util
parent0eaa11530b1c08bea188f4ca69a3dba1609c235e (diff)
downloadgsoc2013-evolution-43ffc445dd3ce93f3129b517ebe6ea6f3da25f18.tar
gsoc2013-evolution-43ffc445dd3ce93f3129b517ebe6ea6f3da25f18.tar.gz
gsoc2013-evolution-43ffc445dd3ce93f3129b517ebe6ea6f3da25f18.tar.bz2
gsoc2013-evolution-43ffc445dd3ce93f3129b517ebe6ea6f3da25f18.tar.lz
gsoc2013-evolution-43ffc445dd3ce93f3129b517ebe6ea6f3da25f18.tar.xz
gsoc2013-evolution-43ffc445dd3ce93f3129b517ebe6ea6f3da25f18.tar.zst
gsoc2013-evolution-43ffc445dd3ce93f3129b517ebe6ea6f3da25f18.zip
Remove e_tree_node_at_row().
Reducing API bloat. Do this instead: adapter = e_tree_get_table_adapter (tree); path = e_tree_table_adapter_node_at_row (adapter, row);
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-tree.c17
-rw-r--r--e-util/e-tree.h2
2 files changed, 3 insertions, 16 deletions
diff --git a/e-util/e-tree.c b/e-util/e-tree.c
index e3a4e76bc8..67776e977a 100644
--- a/e-util/e-tree.c
+++ b/e-util/e-tree.c
@@ -1532,6 +1532,7 @@ et_table_rows_deleted (ETableModel *table_model,
gint count,
ETree *tree)
{
+ ETreeTableAdapter *adapter;
ETreePath * node, * prev_node;
/* If the cursor is still valid after this deletion, we're done */
@@ -1539,7 +1540,8 @@ et_table_rows_deleted (ETableModel *table_model,
|| row == 0)
return;
- prev_node = e_tree_node_at_row (tree, row - 1);
+ adapter = e_tree_get_table_adapter (tree);
+ prev_node = e_tree_table_adapter_node_at_row (adapter, row - 1);
node = e_tree_get_cursor (tree);
/* Check if the cursor is a child of the node directly before the
@@ -2190,19 +2192,6 @@ e_tree_view_to_model_row (ETree *tree,
return view_row;
}
-ETreePath
-e_tree_node_at_row (ETree *tree,
- gint row)
-{
- ETreePath path = { 0 };
-
- g_return_val_if_fail (E_IS_TREE (tree), path);
-
- path = e_tree_table_adapter_node_at_row (tree->priv->etta, row);
-
- return path;
-}
-
gint
e_tree_row_of_node (ETree *tree,
ETreePath path)
diff --git a/e-util/e-tree.h b/e-util/e-tree.h
index 362c4a8274..29cee6ef4f 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 */
-ETreePath e_tree_node_at_row (ETree *tree,
- gint row);
gint e_tree_row_of_node (ETree *tree,
ETreePath path);
gboolean e_tree_root_node_is_visible (ETree *tree);