From 517cb96a31bc20a9b62609a4bdfa35d10a93a020 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 6 Dec 2000 23:25:06 +0000 Subject: pass along the column's width to e_cell_show_tooltip. 2000-12-06 Chris Toshok * e-table-item.c (_do_tooltip): pass along the column's width to e_cell_show_tooltip. * e-cell-text.c (ect_show_tooltip): add col_width argument, and set cell.width = col_width - 8 (to mimic what happens in build_current_cell, but with a possibly altered width). * e-cell.c (e_cell_show_tooltip): add col_width argument, and pass along to virtual function. (ec_show_tooltip): add col_width argument. * e-cell.h: change prototype of e_cell_show_tooltip to include a width parameter. * e-cell-tree.c (ect_show_tooltip): send the width - the subcell's offset to e_cell_show_tooltip. svn path=/trunk/; revision=6831 --- widgets/table/e-cell.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets/table/e-cell.h') diff --git a/widgets/table/e-cell.h b/widgets/table/e-cell.h index 14bf8c1a35..faaf23b916 100644 --- a/widgets/table/e-cell.h +++ b/widgets/table/e-cell.h @@ -75,7 +75,7 @@ typedef struct { gdouble (*print_height) (ECellView *ecell_view, GnomePrintContext *context, int model_col, int view_col, int row, gdouble width); int (*max_width) (ECellView *ecell_view, int model_col, int view_col); - void (*show_tooltip) (ECellView *ecell_view, int model_col, int view_col, int row, ETableTooltip *tooltip); + void (*show_tooltip) (ECellView *ecell_view, int model_col, int view_col, int row, int col_width, ETableTooltip *tooltip); } ECellClass; GtkType e_cell_get_type (void); @@ -96,7 +96,7 @@ void e_cell_print (ECellView *ecell_view, GnomePrintContext *context, gdouble e_cell_print_height (ECellView *ecell_view, GnomePrintContext *context, int model_col, int view_col, int row, gdouble width); int e_cell_max_width (ECellView *ecell_view, int model_col, int view_col); -void e_cell_show_tooltip (ECellView *ecell_view, int model_col, int view_col, int row, ETableTooltip *tooltip); +void e_cell_show_tooltip (ECellView *ecell_view, int model_col, int view_col, int row, int col_width, ETableTooltip *tooltip); void e_cell_focus (ECellView *ecell_view, int model_col, int view_col, int row, int x1, int y1, int x2, int y2); void e_cell_unfocus (ECellView *ecell_view); -- cgit v1.2.3