aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-tree.c
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2003-04-21 22:18:58 +0800
committerMike Kestner <mkestner@src.gnome.org>2003-04-21 22:18:58 +0800
commit1eba3d38e0be4aa0df3878098a88b507226aca23 (patch)
treee58e95b8891c657c01106738edc1aba0f770748d /widgets/table/e-cell-tree.c
parentfeda331c16630204c5eeb3f022fc218c64abeb76 (diff)
downloadgsoc2013-evolution-1eba3d38e0be4aa0df3878098a88b507226aca23.tar.gz
gsoc2013-evolution-1eba3d38e0be4aa0df3878098a88b507226aca23.tar.zst
gsoc2013-evolution-1eba3d38e0be4aa0df3878098a88b507226aca23.zip
use e_tree_table_adapter_node_get_next to determine how to draw sibling
2003-04-21 Mike Kestner <mkestner@ximian.com> * 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
Diffstat (limited to 'widgets/table/e-cell-tree.c')
-rw-r--r--widgets/table/e-cell-tree.c8
1 files changed, 4 insertions, 4 deletions
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);