aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-04 17:06:25 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-04 17:06:25 +0800
commitcf787e7c58df849c97c429b79c992033eca5cf0e (patch)
treec2cfe97c57fe4dbde548d405cc5d7b7be6573723 /widgets/table/e-table-item.c
parentf115718e144c2bfdbf9c03327655faa69b88af20 (diff)
downloadgsoc2013-evolution-cf787e7c58df849c97c429b79c992033eca5cf0e.tar.gz
gsoc2013-evolution-cf787e7c58df849c97c429b79c992033eca5cf0e.tar.zst
gsoc2013-evolution-cf787e7c58df849c97c429b79c992033eca5cf0e.zip
if motion column is beyond our known columns, just ignore it and don't
2004-05-04 Not Zed <NotZed@Ximian.com> * e-table-item.c (eti_event): if motion column is beyond our known columns, just ignore it and don't generate a LEAVE_NOTIFY. uh, seems to work, and fixes #57222. svn path=/trunk/; revision=25778
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r--widgets/table/e-table-item.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 4f9cd6a177..8a9956a614 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -353,7 +353,7 @@ eti_attach_cell_views (ETableItem *eti)
g_assert (eti->header);
g_assert (eti->table_model);
-
+
/*
* Now realize the various ECells
*/
@@ -2551,7 +2551,8 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
return TRUE;
if (eti->motion_row != -1 && eti->motion_col != -1 &&
- (row != eti->motion_row || col != eti->motion_col)) {
+ (row != eti->motion_row || col != eti->motion_col)
+ && eti->motion_col < eti->n_cells) {
GdkEvent *cross = gdk_event_new (GDK_LEAVE_NOTIFY);
cross->crossing.time = e->motion.time;
return_val = eti_e_cell_event (eti, eti->cell_views [eti->motion_col],