aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-02-08 11:29:49 +0800
committerChris Lahey <clahey@src.gnome.org>2000-02-08 11:29:49 +0800
commitc02660b4081a84c9ad5749a931f5458f08f634d3 (patch)
tree10cce4a936ef0b729562ede474eff76aab0bcd01 /widgets/table/e-table-item.c
parent1a44ff0e97b73be2728f3ecef9fe58027560c798 (diff)
downloadgsoc2013-evolution-c02660b4081a84c9ad5749a931f5458f08f634d3.tar.gz
gsoc2013-evolution-c02660b4081a84c9ad5749a931f5458f08f634d3.tar.zst
gsoc2013-evolution-c02660b4081a84c9ad5749a931f5458f08f634d3.zip
Fixed some motion event bugs. (incorrect x and y.)
2000-02-07 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r--widgets/table/e-table-item.c8
1 files changed, 4 insertions, 4 deletions
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);
}