Made these functions return -1 if the x and y aren't over any cell at all.
2001-07-12 Christopher James Lahey <clahey@ximian.com> * 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
This commit is contained in:
committed by
Chris Lahey
parent
b3a9531d20
commit
2f2b112aec
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user