forked from enlightenment/efl
Genlist: support of ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY mode of genlist item for ELM_ITEM_SELECT_ON_FOCUS_DISABLE config variable.
Summary: When environment variable ELM_ITEM_SELECT_ON_FOCUS_DISABLE is set _item_focused_next() function doesn't support for ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY mode. Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com> @fix Reviewers: raster, Hermet Subscribers: singh.amitesh, sachin.dev Differential Revision: https://phab.enlightenment.org/D2464
This commit is contained in:
parent
a52bce3a8d
commit
4be797c525
|
@ -2658,7 +2658,8 @@ _item_focused_next(Evas_Object *obj, Elm_Focus_Direction dir)
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
||||||
while ((next) &&
|
while ((next) &&
|
||||||
(eo_do_ret(EO_OBJ(next), tmp, elm_wdg_item_disabled_get())))
|
((eo_do_ret(EO_OBJ(next), tmp, elm_wdg_item_disabled_get())) ||
|
||||||
|
(_is_no_select(next))))
|
||||||
next = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(next)->next);
|
next = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(next)->next);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2671,7 +2672,9 @@ _item_focused_next(Evas_Object *obj, Elm_Focus_Direction dir)
|
||||||
eo_next = elm_genlist_item_prev_get(sd->focused_item);
|
eo_next = elm_genlist_item_prev_get(sd->focused_item);
|
||||||
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
|
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
|
||||||
|
|
||||||
while (eo_do_ret(eo_next, tmp, elm_wdg_item_disabled_get()))
|
while ((next) &&
|
||||||
|
((eo_do_ret(eo_next, tmp, elm_wdg_item_disabled_get())) ||
|
||||||
|
(_is_no_select(next))))
|
||||||
{
|
{
|
||||||
eo_next = elm_genlist_item_prev_get(eo_next);
|
eo_next = elm_genlist_item_prev_get(eo_next);
|
||||||
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
|
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
|
||||||
|
@ -2684,7 +2687,9 @@ _item_focused_next(Evas_Object *obj, Elm_Focus_Direction dir)
|
||||||
eo_next = elm_genlist_item_next_get(sd->focused_item);
|
eo_next = elm_genlist_item_next_get(sd->focused_item);
|
||||||
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
|
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
|
||||||
|
|
||||||
while (eo_do_ret(eo_next, tmp, elm_wdg_item_disabled_get()))
|
while ((next) &&
|
||||||
|
((eo_do_ret(eo_next, tmp, elm_wdg_item_disabled_get())) ||
|
||||||
|
(_is_no_select(next))))
|
||||||
{
|
{
|
||||||
eo_next = elm_genlist_item_next_get(eo_next);
|
eo_next = elm_genlist_item_next_get(eo_next);
|
||||||
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
|
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
|
||||||
|
|
Loading…
Reference in New Issue