diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-05-11 23:06:59 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-05-11 23:06:59 +0900 |
commit | dd2827a7bd2acf316e0d194647b49ca22c7e90cc (patch) | |
tree | 7bcbc39014a24f84f23c10a90c6469bf8be9f1d9 | |
parent | d000a25d19f1613898d31afa825f9c8613cb06bd (diff) | |
download | elementary-dd2827a7bd2acf316e0d194647b49ca22c7e90cc.tar.gz |
list: Use convenient macro ELM_RECTS_INCLUDE.
-rw-r--r-- | src/lib/elm_list.c | 2 |
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) { |