aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-08-04 13:38:33 +0800
committerChris Lahey <clahey@src.gnome.org>2001-08-04 13:38:33 +0800
commit966bef8c54a5311426a88222cbe3643c78e3e450 (patch)
tree3845a542b4a4c85b8e562f294df47fa7f9ba87d6
parentf35d325f7920c22848e89ccfcfef9b3a34699569 (diff)
downloadgsoc2013-evolution-966bef8c54a5311426a88222cbe3643c78e3e450.tar
gsoc2013-evolution-966bef8c54a5311426a88222cbe3643c78e3e450.tar.gz
gsoc2013-evolution-966bef8c54a5311426a88222cbe3643c78e3e450.tar.bz2
gsoc2013-evolution-966bef8c54a5311426a88222cbe3643c78e3e450.tar.lz
gsoc2013-evolution-966bef8c54a5311426a88222cbe3643c78e3e450.tar.xz
gsoc2013-evolution-966bef8c54a5311426a88222cbe3643c78e3e450.tar.zst
gsoc2013-evolution-966bef8c54a5311426a88222cbe3643c78e3e450.zip
Change these to actually subtract the allocation as they should.
2001-08-03 Christopher James Lahey <clahey@ximian.com> * 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
-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,