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-field-chooser-item.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'widgets/table/e-table-field-chooser-item.c') diff --git a/widgets/table/e-table-field-chooser-item.c b/widgets/table/e-table-field-chooser-item.c index 67beee9d52..20048007d7 100644 --- a/widgets/table/e-table-field-chooser-item.c +++ b/widgets/table/e-table-field-chooser-item.c @@ -522,12 +522,10 @@ etfci_draw (GnomeCanvasItem *item, } } -static double -etfci_point (GnomeCanvasItem *item, gdouble x, gdouble y, gint cx, gint cy, - GnomeCanvasItem **actual_item) +static GnomeCanvasItem * +etfci_point (GnomeCanvasItem *item, gdouble x, gdouble y, gint cx, gint cy) { - *actual_item = item; - return 0.0; + return item; } static gboolean -- cgit v1.2.3