diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-20 23:06:44 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-21 03:31:51 +0800 |
commit | 792f0ba3748bda87b08e1c4e564a618b3b427c4f (patch) | |
tree | a13a41f33e5ba4fed9700658c9c20322516cd5a9 /e-util | |
parent | 43ffc445dd3ce93f3129b517ebe6ea6f3da25f18 (diff) | |
download | gsoc2013-evolution-792f0ba3748bda87b08e1c4e564a618b3b427c4f.tar gsoc2013-evolution-792f0ba3748bda87b08e1c4e564a618b3b427c4f.tar.gz gsoc2013-evolution-792f0ba3748bda87b08e1c4e564a618b3b427c4f.tar.bz2 gsoc2013-evolution-792f0ba3748bda87b08e1c4e564a618b3b427c4f.tar.lz gsoc2013-evolution-792f0ba3748bda87b08e1c4e564a618b3b427c4f.tar.xz gsoc2013-evolution-792f0ba3748bda87b08e1c4e564a618b3b427c4f.tar.zst gsoc2013-evolution-792f0ba3748bda87b08e1c4e564a618b3b427c4f.zip |
Remove e_tree_row_of_node().
Reducing API bloat. Do this instead:
adapter = e_tree_get_table_adapter (tree);
row = e_tree_table_adapter_row_of_node (adapter, path);
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, 6 insertions, 13 deletions
diff --git a/e-util/e-tree.c b/e-util/e-tree.c index 67776e977a..3ad966c70b 100644 --- a/e-util/e-tree.c +++ b/e-util/e-tree.c @@ -769,10 +769,14 @@ scroll_to_cursor (ETree *tree) path = e_tree_get_cursor (tree); x = y = w = h = 0; - if (path) { - gint row = e_tree_row_of_node (tree, path); + if (path != NULL) { + ETreeTableAdapter *adapter; + gint row; gint col = 0; + adapter = e_tree_get_table_adapter (tree); + row = e_tree_table_adapter_row_of_node (adapter, path); + if (row >= 0) e_table_item_get_cell_geometry ( E_TABLE_ITEM (tree->priv->item), @@ -2192,15 +2196,6 @@ e_tree_view_to_model_row (ETree *tree, return view_row; } -gint -e_tree_row_of_node (ETree *tree, - ETreePath path) -{ - g_return_val_if_fail (E_IS_TREE (tree), -1); - - return e_tree_table_adapter_row_of_node (tree->priv->etta, path); -} - gboolean e_tree_root_node_is_visible (ETree *tree) { diff --git a/e-util/e-tree.h b/e-util/e-tree.h index 29cee6ef4f..9a4efe9709 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 */ -gint e_tree_row_of_node (ETree *tree, - ETreePath path); gboolean e_tree_root_node_is_visible (ETree *tree); void e_tree_show_node (ETree *tree, ETreePath path); |