aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-vbox.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-03-13 05:24:34 +0800
committerChris Lahey <clahey@src.gnome.org>2002-03-13 05:24:34 +0800
commitd882e4e420f7d65301aded0e8b4082c666da2e5b (patch)
tree60e77289fc4125f3b31b9672e154b5d491f8507a /widgets/table/e-cell-vbox.c
parentfff110978aa79dcde9654c8386eb828b1c752c63 (diff)
downloadgsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.tar.gz
gsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.tar.zst
gsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.zip
Give the correct height to the subcells instead of overlapping them.
2002-03-12 Christopher James Lahey <clahey@ximian.com> * e-cell-vbox.c (ecv_draw): Give the correct height to the subcells instead of overlapping them. * e-table-header.c, e-table-header.h (e_table_header_move, eth_calc_widths): Emit the dimension_changed signal with the width of the header. * e-table-memory-store.c (duplicate_value, etms_free_value): Handle NULL pixbufs here. * e-table.c, e-table.h: Connect to the dimension_changed signal and call set_header_width. Did a bit of refactoring here. svn path=/trunk/; revision=16128
Diffstat (limited to 'widgets/table/e-cell-vbox.c')
-rw-r--r--widgets/table/e-cell-vbox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/table/e-cell-vbox.c b/widgets/table/e-cell-vbox.c
index bbbc4013e3..a854c2dae1 100644
--- a/widgets/table/e-cell-vbox.c
+++ b/widgets/table/e-cell-vbox.c
@@ -153,9 +153,10 @@ ecv_draw (ECellView *ecell_view, GdkDrawable *drawable,
for (i = 0; i < vbox_view->subcell_view_count; i++) {
/* Now cause our subcells to draw their contents,
shifted by subcell_offset pixels */
+ int height = e_cell_height (vbox_view->subcell_views[i], vbox_view->model_cols[i], view_col, row);
e_cell_draw (vbox_view->subcell_views[i], drawable,
vbox_view->model_cols[i], view_col, row, flags,
- x1, y1 + subcell_offset, x2, y2);
+ x1, y1 + subcell_offset, x2, y1 + subcell_offset + height);
subcell_offset += e_cell_height (vbox_view->subcell_views[i], vbox_view->model_cols[i], view_col, row);
}