list/genlist/gengrid/toolbar: Fix - _nearest_visible_item_get() should always return...
authorAmitesh Singh <amitesh.sh@samsung.com>
Fri, 4 Apr 2014 03:04:04 +0000 (12:04 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 4 Apr 2014 03:04:04 +0000 (12:04 +0900)
commit1479664ec06196602a9d146d6411158b733df5be
treea6bb2a2ba02e1241e9c0807053caa31f523169a2
parent173df1d361a2f263c5010bf9b92dd97b1557ff2f
list/genlist/gengrid/toolbar: Fix - _nearest_visible_item_get() should always return an item.

Test Plan:
Bug:
- elementary_test->genlist/list/toolbar/gengrid Focus
- Resize the window to a state when no item is fully visible. only partially visible.
- Move Focus from outer widgets (Up/Down/Left/right buttons) to list/genlist/gengrid/toolbar.
- Focus goes away (size - 0). Reason: _nearest_visible_item_get returns NULL.

@fix

Reviewers: seoz, raster, woohyun

Reviewed By: raster

CC: seoz, nirajkr, anand.km
Differential Revision: https://phab.enlightenment.org/D696
legacy/elementary/src/lib/elm_gengrid.c
legacy/elementary/src/lib/elm_genlist.c
legacy/elementary/src/lib/elm_list.c
legacy/elementary/src/lib/elm_toolbar.c