From fd9186c4073b87557338f63f4140338b4c9058b0 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 14 Dec 2000 18:24:25 +0000 Subject: call set_style and use the appropriate style for the text to determine if 2000-12-14 Chris Toshok * e-cell-text.c (ect_show_tooltip): call set_style and use the appropriate style for the text to determine if the tooltip should be shown. svn path=/trunk/; revision=7016 --- widgets/table/e-cell-text.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'widgets/table/e-cell-text.c') diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index f2b9a22890..f33eceb75c 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -1373,6 +1373,9 @@ ect_show_tooltip (ECellView *ecell_view, tooltip->timer = 0; build_current_cell (&cell, text_view, model_col, view_col, row); + + set_style(ecell_view, &cell, row); + cell.width = col_width - 8; split_into_lines (&cell); calc_line_widths (&cell); @@ -1413,7 +1416,7 @@ ect_show_tooltip (ECellView *ecell_view, gdouble line_width; line_width = e_font_utf8_text_width (text_view->font, - E_FONT_PLAIN, lines->text, + cell.style, lines->text, lines->length); max_width = MAX (max_width, line_width); } -- cgit v1.2.3