aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-text.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2000-09-18 01:18:04 +0800
committerIain Holmes <iain@src.gnome.org>2000-09-18 01:18:04 +0800
commit13679221973a960628aa73dfa289b591e0de27e1 (patch)
tree71eddbe6d5750554a238e76ef8420295fdb4d761 /widgets/table/e-cell-text.c
parent0d2998b1a1f8af2b6938d4dd40873ef80095844d (diff)
downloadgsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.tar
gsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.tar.gz
gsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.tar.bz2
gsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.tar.lz
gsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.tar.xz
gsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.tar.zst
gsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.zip
Better calculations for tooltip positions
svn path=/trunk/; revision=5477
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r--widgets/table/e-cell-text.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index e07c44d1d8..8f31b7adf4 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -1451,14 +1451,15 @@ ect_show_tooltip (ECellView *ecell_view,
break;
}
+ gnome_canvas_item_move (tooltip_text, 3.0, 1.0);
gnome_canvas_item_set (rect,
- "x2", (double) tooltip_width,
- "y2", (double) tooltip->row_height,
+ "x2", (double) tooltip_width + 6,
+ "y2", (double) tooltip->row_height + 1,
NULL);
- gtk_widget_set_usize (tooltip->window, tooltip_width,
- tooltip->row_height);
+ gtk_widget_set_usize (tooltip->window, tooltip_width + 6,
+ tooltip->row_height + 1);
gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0.0, 0.0,
- (double) tooltip_width,
+ (double) tooltip_width + 6,
(double) tooltip_height);
gtk_widget_show (canvas);
gtk_widget_realize (tooltip->window);
@@ -1466,7 +1467,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);
+ pixel_origin.y + tooltip->y + 1);
unref_lines (&cell);
unbuild_current_cell (&cell);