From 2f2b112aecf8cd3f963e0e1e8740bec51450e19b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 13 Jul 2001 02:52:33 +0000 Subject: Made these functions return -1 if the x and y aren't over any cell at all. 2001-07-12 Christopher James Lahey * e-tree.c (e_tree_get_cell_at): Made these functions return -1 if the x and y aren't over any cell at all. svn path=/trunk/; revision=11077 --- widgets/table/e-tree.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 1c45afa7ef..985a44ab2d 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -1787,6 +1787,11 @@ e_tree_get_cell_at (ETree *tree, /* FIXME it would be nice if it could handle a NULL row_return or * col_return gracefully. */ + if (row_return) + *row_return = -1; + if (col_return) + *col_return = -1; + x += GTK_LAYOUT(tree->priv->table_canvas)->hadjustment->value; y += GTK_LAYOUT(tree->priv->table_canvas)->vadjustment->value; e_table_item_compute_location(E_TABLE_ITEM(tree->priv->item), &x, &y, row_return, col_return); -- cgit v1.2.3