summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-05-11 23:06:59 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-05-11 23:06:59 +0900
commitdd2827a7bd2acf316e0d194647b49ca22c7e90cc (patch)
tree7bcbc39014a24f84f23c10a90c6469bf8be9f1d9
parentd000a25d19f1613898d31afa825f9c8613cb06bd (diff)
downloadelementary-dd2827a7bd2acf316e0d194647b49ca22c7e90cc.tar.gz
list: Use convenient macro ELM_RECTS_INCLUDE.
-rw-r--r--src/lib/elm_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index fcaa40ec9..e7a8462d1 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -1092,7 +1092,7 @@ _elm_list_item_focused(Elm_List_Item *it)
return;
evas_object_geometry_get(VIEW(it), &x, &y, &w, &h);
evas_object_geometry_get(sd->hit_rect, &sx, &sy, &sw, &sh);
- if ((x < sx) || (y < sy)|| ((x + w) > (sx + sw)) || ((y + h) > (sy + sh)))
+ if (!ELM_RECTS_INCLUDE(sx, sy, sw, sh, x, y, w, h))
{
switch (_elm_config->focus_autoscroll_mode)
{