From 966bef8c54a5311426a88222cbe3643c78e3e450 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 4 Aug 2001 05:38:33 +0000 Subject: Change these to actually subtract the allocation as they should. 2001-08-03 Christopher James Lahey * e-tree.c (et_drag_motion, et_drag_drop, et_drag_data_received): Change these to actually subtract the allocation as they should. svn path=/trunk/; revision=11649 --- widgets/table/e-tree.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 23b5cc4e04..527f0e1057 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -1918,7 +1918,8 @@ et_drag_motion(GtkWidget *widget, gboolean ret_val; int row, col; ETreePath path; - y -= 27; + y -= widget->allocation.y; + x -= widget->allocation.x; e_tree_get_cell_at (et, x, y, @@ -1964,7 +1965,8 @@ et_drag_drop(GtkWidget *widget, gboolean ret_val; int row, col; ETreePath path; - y -= 27; + y -= widget->allocation.y; + x -= widget->allocation.x; e_tree_get_cell_at(et, x, y, @@ -2023,7 +2025,8 @@ et_drag_data_received(GtkWidget *widget, { int row, col; ETreePath path; - y -= 27; + y -= widget->allocation.y; + x -= widget->allocation.x; e_tree_get_cell_at(et, x, y, -- cgit v1.2.3