From b71a5d2ee885bb50f0d76174175ef0cb248df96d Mon Sep 17 00:00:00 2001 From: cedric Date: Fri, 27 Nov 2009 09:51:08 +0000 Subject: [PATCH] * evas: Do a proper fix for all rectangle match. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@44010 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/canvas/evas_object_main.c b/src/lib/canvas/evas_object_main.c index ef6e712..9818370 100644 --- a/src/lib/canvas/evas_object_main.c +++ b/src/lib/canvas/evas_object_main.c @@ -26,11 +26,11 @@ static Eina_Inlist * -get_layer_objects_last(Evas_Layer *l) +get_layer_objects(Evas_Layer *l) { if( !l || !l->objects ) return NULL; - return (EINA_INLIST_GET(l->objects))->last; + return (EINA_INLIST_GET(l->objects)); } /* evas internal stuff */ @@ -1452,7 +1452,7 @@ evas_object_top_at_xy_get(const Evas *e, Evas_Coord x, Evas_Coord y, Eina_Bool i { Evas_Object *obj; - EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj) + EINA_INLIST_REVERSE_FOREACH(get_layer_objects(lay), obj) { if (obj->delete_me) continue; if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue; @@ -1514,7 +1514,7 @@ evas_object_top_in_rectangle_get(const Evas *e, Evas_Coord x, Evas_Coord y, Evas { Evas_Object *obj; - EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj) + EINA_INLIST_REVERSE_FOREACH(get_layer_objects(lay), obj) { if (obj->delete_me) continue; if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue; @@ -1557,7 +1557,7 @@ evas_objects_at_xy_get(const Evas *e, Evas_Coord x, Evas_Coord y, Eina_Bool incl { Evas_Object *obj; - EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj) + EINA_INLIST_REVERSE_FOREACH(get_layer_objects(lay), obj) { if (obj->delete_me) continue; if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue; @@ -1612,7 +1612,7 @@ evas_objects_in_rectangle_get(const Evas *e, Evas_Coord x, Evas_Coord y, Evas_Co { Evas_Object *obj; - EINA_INLIST_FOREACH(get_layer_objects_last(lay), obj) + EINA_INLIST_REVERSE_FOREACH(get_layer_objects(lay), obj) { if (obj->delete_me) continue; if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue; -- 2.7.4