From b3a95d0299386bccbdebb967d15f4df02cf15891 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 10 Oct 2010 02:31:45 +0200 Subject: gnome-canvas: Change GnomeCanvasItem->point vfunc Previously the function returned the distance to the nearest item. Now it only returns an item that is hit. This slightly changes semantics (button events are no longer dispatched to the nearest item, but only to the item actually clicked on), but makes the code way simpler and actually does what one would expect. --- widgets/table/e-table-item.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'widgets/table/e-table-item.c') diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 7bd0ed4427..d68c69a220 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -2042,13 +2042,10 @@ exit: cairo_destroy (cr); } -static double -eti_point (GnomeCanvasItem *item, gdouble x, gdouble y, gint cx, gint cy, - GnomeCanvasItem **actual_item) +static GnomeCanvasItem * +eti_point (GnomeCanvasItem *item, gdouble x, gdouble y, gint cx, gint cy) { - *actual_item = item; - - return 0.0; + return item; } static gboolean -- cgit