aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-21 00:13:32 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-21 00:13:32 +0800
commit5421d39a4744d6be9bfec771773b8f444229ead9 (patch)
tree248ba737cd5609e34277bae4cb3c1a8ecb3c5cda /widgets
parentfe095403186f03115ad14415da6aac6990f8b27b (diff)
downloadgsoc2013-evolution-5421d39a4744d6be9bfec771773b8f444229ead9.tar.gz
gsoc2013-evolution-5421d39a4744d6be9bfec771773b8f444229ead9.tar.zst
gsoc2013-evolution-5421d39a4744d6be9bfec771773b8f444229ead9.zip
If we are drawing a top-level tree node, without any children then dont
2001-02-02 Not Zed <NotZed@Ximian.com> * e-cell-tree.c (ect_draw): If we are drawing a top-level tree node, without any children then dont offset it for the expansion image it doesn't need. svn path=/trunk/; revision=8304
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-cell-tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c
index f056cde271..62c78da748 100644
--- a/widgets/table/e-cell-tree.c
+++ b/widgets/table/e-cell-tree.c
@@ -179,9 +179,14 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
node = e_cell_tree_get_node (ecell_view->e_table_model, row);
- offset = offset_of_node (tree_model, node);
expandable = e_tree_model_node_is_expandable (tree_model, node);
expanded = e_tree_model_node_is_expanded (tree_model, node);
+
+ if (visible_depth_of_node (tree_model, node) > 0 || expandable) {
+ offset = offset_of_node (tree_model, node);
+ } else {
+ offset = 0;
+ }
subcell_offset = offset;
node_image = e_tree_model_icon_of_node (tree_model, node);