diff options
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-tree.c | 17 | ||||
-rw-r--r-- | e-util/e-tree.h | 2 |
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); |