aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-12-15 02:24:25 +0800
committerChris Toshok <toshok@src.gnome.org>2000-12-15 02:24:25 +0800
commitfd9186c4073b87557338f63f4140338b4c9058b0 (patch)
treef4e20bfab51e32425e495574664f62ae2edb982e /widgets/table
parent9aed9d13ea821158146664f75bc35d7f09116bb9 (diff)
downloadgsoc2013-evolution-fd9186c4073b87557338f63f4140338b4c9058b0.tar
gsoc2013-evolution-fd9186c4073b87557338f63f4140338b4c9058b0.tar.gz
gsoc2013-evolution-fd9186c4073b87557338f63f4140338b4c9058b0.tar.bz2
gsoc2013-evolution-fd9186c4073b87557338f63f4140338b4c9058b0.tar.lz
gsoc2013-evolution-fd9186c4073b87557338f63f4140338b4c9058b0.tar.xz
gsoc2013-evolution-fd9186c4073b87557338f63f4140338b4c9058b0.tar.zst
gsoc2013-evolution-fd9186c4073b87557338f63f4140338b4c9058b0.zip
call set_style and use the appropriate style for the text to determine if
2000-12-14 Chris Toshok <toshok@helixcode.com> * 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
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-cell-text.c5
1 files changed, 4 insertions, 1 deletions
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);
}