aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-tree.c9
1 files 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,