diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-04-15 21:03:26 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-04-15 21:03:26 +0800 |
commit | 61353c59dcb175818ce98d9b4c7706026edbf395 (patch) | |
tree | b9c9d631572c6ab9a1a5e7d1f078b2b5b379c639 /widgets/table/e-cell-text.c | |
parent | 15541de2db8a7475e33c439e5640d9b89559a176 (diff) | |
download | gsoc2013-evolution-61353c59dcb175818ce98d9b4c7706026edbf395.tar.gz gsoc2013-evolution-61353c59dcb175818ce98d9b4c7706026edbf395.tar.zst gsoc2013-evolution-61353c59dcb175818ce98d9b4c7706026edbf395.zip |
Set "bold" argument on created tooltip. Adjusted position of displayed
2001-04-15 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c (ect_show_tooltip): Set "bold" argument on created
tooltip. Adjusted position of displayed tooltip.
* e-cell-tree.c (offset_of_node): Changed it so that this function
handles knowing whether on not to indent non expandable first
level nodes. This makes things more consistent.
* e-table-item.c (eti_realize): Cleaned up the ETableItem code to
properly hide tooltips when going off the screen.
* e-table-tooltip.h: Added a visibility_count field to ETableTooltip.
svn path=/trunk/; revision=9320
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r-- | widgets/table/e-cell-text.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 4be7439d4c..6a3fc87122 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -96,11 +96,7 @@ typedef struct _CellEdit CellEdit; typedef struct { ECellView cell_view; GdkGC *gc; -#if 0 - GdkFont *font; -#else EFont *font; -#endif GdkCursor *i_cursor; GdkBitmap *stipple; /* Stipple for text */ @@ -1167,6 +1163,7 @@ ect_show_tooltip (ECellView *ecell_view, double tooltip_y; GnomeCanvasItem *rect; double text_height; + ECellText *ect = E_CELL_TEXT(ecell_view->ecell); tooltip->timer = 0; @@ -1235,6 +1232,7 @@ ect_show_tooltip (ECellView *ecell_view, e_text_get_type (), "anchor", GTK_ANCHOR_NW, /* "font_gdk", text_view->font, */ + "bold", (gboolean) ect->bold_column >= 0 && e_table_model_value_at(ecell_view->e_table_model, ect->bold_column, row), "text", cell.text, "editable", FALSE, "clip_width", max_width, @@ -1278,7 +1276,7 @@ ect_show_tooltip (ECellView *ecell_view, GTK_SIGNAL_FUNC (tooltip_event), tooltip); gtk_widget_popup (tooltip->window, pixel_origin.x + tooltip->x, - pixel_origin.y + tooltip->y + 1); + pixel_origin.y + tooltip->y - 1); unref_lines (&cell); unbuild_current_cell (&cell); |