From 1eba3d38e0be4aa0df3878098a88b507226aca23 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 21 Apr 2003 14:18:58 +0000 Subject: use e_tree_table_adapter_node_get_next to determine how to draw sibling 2003-04-21 Mike Kestner * e-cell-tree.c (ect_draw): use e_tree_table_adapter_node_get_next to determine how to draw sibling lines. (ect_print): ditto * e-tree-table-adapter.c (e_t_t_a_node_get_next): new svn path=/trunk/; revision=20902 --- widgets/table/e-cell-tree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'widgets/table/e-cell-tree.c') diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c index a1b92ba7e6..03a454e2c5 100644 --- a/widgets/table/e-cell-tree.c +++ b/widgets/table/e-cell-tree.c @@ -264,7 +264,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, rect.x + offset - INDENT_AMOUNT / 2, rect.y, rect.x + offset - INDENT_AMOUNT / 2, - (e_tree_model_node_get_next (tree_model, node) + (e_tree_table_adapter_node_get_next (tree_table_adapter, node) ? rect.y + rect.height : rect.y + rect.height / 2)); } @@ -276,7 +276,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, offset -= INDENT_AMOUNT; depth = visible_depth_of_node (ecell_view->e_table_model, row) - 1; while (parent_node && depth != 0) { - if (e_tree_model_node_get_next(tree_model, parent_node)) { + if (e_tree_table_adapter_node_get_next(tree_table_adapter, parent_node)) { gdk_draw_line (drawable, tree_view->gc, rect.x + offset - INDENT_AMOUNT / 2, rect.y, @@ -590,7 +590,7 @@ ect_print (ECellView *ecell_view, GnomePrintContext *context, height); gnome_print_lineto (context, offset - INDENT_AMOUNT / 2, - (e_tree_model_node_get_next (tree_model, node) + (e_tree_table_adapter_node_get_next (tree_table_adapter, node) ? 0 : height / 2)); } @@ -602,7 +602,7 @@ ect_print (ECellView *ecell_view, GnomePrintContext *context, depth = visible_depth_of_node (ecell_view->e_table_model, row) - 1; offset -= INDENT_AMOUNT; while (node && depth != 0) { - if (e_tree_model_node_get_next(tree_model, node)) { + if (e_tree_table_adapter_node_get_next(tree_table_adapter, node)) { gnome_print_moveto (context, offset - INDENT_AMOUNT / 2, height); -- cgit