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
This commit is contained in:
Chris Toshok
2000-07-06 23:27:17 +00:00
committed by Chris Toshok
parent 2326c6b794
commit 308228cd4e
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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,

View File

@ -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,