diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-03-14 08:40:00 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-03-14 08:40:00 +0800 |
commit | e4b9bae624fca91ef7fe2a933abf33b41f6d9e4a (patch) | |
tree | aa5acb2a527ce267638598bd6fa20e08dd73f5ff | |
parent | f6bad40cd158e950c5c88f41b18dd3e4ce1d81c2 (diff) | |
download | gsoc2013-evolution-e4b9bae624fca91ef7fe2a933abf33b41f6d9e4a.tar gsoc2013-evolution-e4b9bae624fca91ef7fe2a933abf33b41f6d9e4a.tar.gz gsoc2013-evolution-e4b9bae624fca91ef7fe2a933abf33b41f6d9e4a.tar.bz2 gsoc2013-evolution-e4b9bae624fca91ef7fe2a933abf33b41f6d9e4a.tar.lz gsoc2013-evolution-e4b9bae624fca91ef7fe2a933abf33b41f6d9e4a.tar.xz gsoc2013-evolution-e4b9bae624fca91ef7fe2a933abf33b41f6d9e4a.tar.zst gsoc2013-evolution-e4b9bae624fca91ef7fe2a933abf33b41f6d9e4a.zip |
Made this function do something a little closer to what it is supposed to
2001-03-13 Christopher James Lahey <clahey@ximian.com>
* gal/widgets/e-reflow.c (e_reflow_point): Made this function do
something a little closer to what it is supposed to do.
svn path=/trunk/; revision=8693
-rw-r--r-- | widgets/misc/e-reflow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/misc/e-reflow.c b/widgets/misc/e-reflow.c index 735d965120..3fb664cea4 100644 --- a/widgets/misc/e-reflow.c +++ b/widgets/misc/e-reflow.c @@ -675,10 +675,12 @@ e_reflow_point (GnomeCanvasItem *item, { double distance = 1; + *actual_item = NULL; + if (GNOME_CANVAS_ITEM_CLASS(parent_class)->point) distance = GNOME_CANVAS_ITEM_CLASS(parent_class)->point (item, x, y, cx, cy, actual_item); - if (*actual_item) - return 0; + if ((int) (distance * item->canvas->pixels_per_unit + 0.5) <= item->canvas->close_enough && *actual_item) + return distance; *actual_item = item; return 0; |