diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-04-04 16:37:14 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-04-04 16:37:14 +0800 |
commit | 91f381352f9bff029bf8f2cf3ebe35272262e75f (patch) | |
tree | 644aa7c14eddfcb418cc80ddb7dbe7ee7070655b /widgets/table/e-tree.c | |
parent | 8940bcc90c4ecbfdd01bd7224005f575b0df6a2a (diff) | |
download | gsoc2013-evolution-91f381352f9bff029bf8f2cf3ebe35272262e75f.tar.gz gsoc2013-evolution-91f381352f9bff029bf8f2cf3ebe35272262e75f.tar.zst gsoc2013-evolution-91f381352f9bff029bf8f2cf3ebe35272262e75f.zip |
Added e_tree_selection_model_select_single_path and made selection_start
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c, e-tree-selection-model.h: Added
e_tree_selection_model_select_single_path and made selection_start
be the path as it should be instead of the row.
* e-tree-sorted.c: Added a last_access variable to speed up
access.
* e-tree-table-adapter.c: Made checking last_access look at the 10
values before and after the listed value to look for the value
requested.
* e-tree.c: Call e_tree_selection_model_select_single_path if
E_TREE_USE_TREE_SELECTION.
svn path=/trunk/; revision=9169
Diffstat (limited to 'widgets/table/e-tree.c')
-rw-r--r-- | widgets/table/e-tree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 42b279bef3..0aa2668546 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -1033,11 +1033,16 @@ e_tree_new_from_spec_file (ETreeModel *etm, ETableExtras *ete, const char *spec_ void e_tree_set_cursor (ETree *e_tree, ETreePath path) { +#ifndef E_TREE_USE_TREE_SELECTION int row; +#endif g_return_if_fail(e_tree != NULL); g_return_if_fail(E_IS_TREE(e_tree)); g_return_if_fail(path != NULL); +#ifdef E_TREE_USE_TREE_SELECTION + e_tree_selection_model_select_single_path (E_TREE_SELECTION_MODEL(e_tree->priv->selection), path); +#else path = e_tree_sorted_model_to_view_path(e_tree->priv->sorted, path); row = e_tree_table_adapter_row_of_node(E_TREE_TABLE_ADAPTER(e_tree->priv->etta), path); @@ -1048,6 +1053,7 @@ e_tree_set_cursor (ETree *e_tree, ETreePath path) gtk_object_set(GTK_OBJECT(e_tree->priv->selection), "cursor_row", row, NULL); +#endif } ETreePath |