aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-07-13 10:52:33 +0800
committerChris Lahey <clahey@src.gnome.org>2001-07-13 10:52:33 +0800
commit2f2b112aecf8cd3f963e0e1e8740bec51450e19b (patch)
tree4ddb8b72044d85dca2bdf0df37410afb27bee1fb /widgets/table
parentb3a9531d200d132d8eaafacdd906c45d6c924335 (diff)
downloadgsoc2013-evolution-2f2b112aecf8cd3f963e0e1e8740bec51450e19b.tar.gz
gsoc2013-evolution-2f2b112aecf8cd3f963e0e1e8740bec51450e19b.tar.zst
gsoc2013-evolution-2f2b112aecf8cd3f963e0e1e8740bec51450e19b.zip
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
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-tree.c5
1 files changed, 5 insertions, 0 deletions
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);