From c02660b4081a84c9ad5749a931f5458f08f634d3 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 8 Feb 2000 03:29:49 +0000 Subject: Fixed some motion event bugs. (incorrect x and y.) 2000-02-07 Christopher James Lahey * e-table-item.c (eti_event): Fixed some motion event bugs. (incorrect x and y.) * Makefile.am: Added includes for dependencies in evolution/widgets/libevolutionwidgets.a * e-cell-text.h, e-cell-text.c: Completely revamped using code from e-text.c and e-text.h. svn path=/trunk/; revision=1692 --- widgets/table/e-table-item.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'widgets/table/e-table-item.c') diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 33f0c18616..8455ed4824 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -946,9 +946,9 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) int col, row; double x1, y1; - gnome_canvas_item_w2i (item, &e->button.x, &e->button.y); + gnome_canvas_item_w2i (item, &e->motion.x, &e->motion.y); - if (!find_cell (eti, e->button.x, e->button.y, &col, &row, &x1, &y1)) + if (!find_cell (eti, e->motion.x, e->motion.y, &col, &row, &x1, &y1)) return TRUE; if (eti->focused_row == row && eti->focused_col == col){ @@ -958,8 +958,8 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) /* * Adjust the event positions */ - e->button.x -= (x1 + eti->x1); - e->button.y -= (y1 + eti->y1); + e->motion.x = x1; + e->motion.y = y1; e_cell_event (ecell_view, e, ecol->col_idx, col, row); } -- cgit