diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-07-07 07:27:17 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-07-07 07:27:17 +0800 |
commit | 308228cd4e70d1fa31a5e48166ca412b4069fdd9 (patch) | |
tree | f6cf3179f660e26cbb8ee393a91032c5bdc4a14c /widgets | |
parent | 2326c6b7942f648c51d86aa925cf25c79d18b989 (diff) | |
download | gsoc2013-evolution-308228cd4e70d1fa31a5e48166ca412b4069fdd9.tar gsoc2013-evolution-308228cd4e70d1fa31a5e48166ca412b4069fdd9.tar.gz gsoc2013-evolution-308228cd4e70d1fa31a5e48166ca412b4069fdd9.tar.bz2 gsoc2013-evolution-308228cd4e70d1fa31a5e48166ca412b4069fdd9.tar.lz gsoc2013-evolution-308228cd4e70d1fa31a5e48166ca412b4069fdd9.tar.xz gsoc2013-evolution-308228cd4e70d1fa31a5e48166ca412b4069fdd9.tar.zst gsoc2013-evolution-308228cd4e70d1fa31a5e48166ca412b4069fdd9.zip |
fix the conditions under which we draw a horizontal line.
2000-07-06 Chris Toshok <toshok@helixcode.com>
* e-cell-tree.c (ect_draw): fix the conditions under which we draw
a horizontal line.
svn path=/trunk/; revision=3929
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/e-table/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/e-table/e-cell-tree.c | 2 | ||||
-rw-r--r-- | widgets/table/e-cell-tree.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index b60e7fa106..69cf89d832 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,3 +1,8 @@ +2000-07-06 Chris Toshok <toshok@helixcode.com> + + * e-cell-tree.c (ect_draw): fix the conditions under which we draw + a horizontal line. + 2000-07-06 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Send GDK_BUTTON_RELEASE events to the ecell diff --git a/widgets/e-table/e-cell-tree.c b/widgets/e-table/e-cell-tree.c index 2d1a006fdb..46c8c862c9 100644 --- a/widgets/e-table/e-cell-tree.c +++ b/widgets/e-table/e-cell-tree.c @@ -212,7 +212,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, /* draw our lines */ if (E_CELL_TREE(tree_view->cell_view.ecell)->draw_lines) { - if (!e_tree_model_node_is_root (tree_model, node) + if (visible_depth_of_node (tree_model, node) > 0 || e_tree_model_node_get_children (tree_model, node, NULL) > 0) gdk_draw_line (drawable, tree_view->gc, rect.x + offset - INDENT_AMOUNT / 2 + 1, diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c index 2d1a006fdb..46c8c862c9 100644 --- a/widgets/table/e-cell-tree.c +++ b/widgets/table/e-cell-tree.c @@ -212,7 +212,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, /* draw our lines */ if (E_CELL_TREE(tree_view->cell_view.ecell)->draw_lines) { - if (!e_tree_model_node_is_root (tree_model, node) + if (visible_depth_of_node (tree_model, node) > 0 || e_tree_model_node_get_children (tree_model, node, NULL) > 0) gdk_draw_line (drawable, tree_view->gc, rect.x + offset - INDENT_AMOUNT / 2 + 1, |