forked from enlightenment/efl
efl_ui_widget: fixup field counting
this has to use tree_unfocusable not disabled. ref D9644 Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9671
This commit is contained in:
parent
1c1382e09b
commit
b5f458f5b8
|
@ -1742,18 +1742,18 @@ elm_widget_tree_unfocusable_set(Eo *obj, Eina_Bool tree_unfocusable)
|
||||||
else
|
else
|
||||||
pd->tree_unfocusable --;
|
pd->tree_unfocusable --;
|
||||||
|
|
||||||
distance = pd->disabled - parent_counter;
|
distance = pd->tree_unfocusable - parent_counter;
|
||||||
|
|
||||||
if ((distance < 0) || (distance > 1))
|
if ((distance < 0) || (distance > 1))
|
||||||
{
|
{
|
||||||
distance = MAX(MIN(tree_unfocusable, 1), 0);
|
distance = MAX(MIN(tree_unfocusable, 1), 0);
|
||||||
pd->disabled = parent_counter + distance;
|
pd->tree_unfocusable = parent_counter + distance;
|
||||||
}
|
}
|
||||||
|
|
||||||
EINA_LIST_FOREACH(pd->subobjs, n, subs)
|
EINA_LIST_FOREACH(pd->subobjs, n, subs)
|
||||||
{
|
{
|
||||||
if (efl_isa(subs, EFL_UI_WIDGET_CLASS))
|
if (efl_isa(subs, EFL_UI_WIDGET_CLASS))
|
||||||
efl_ui_widget_disabled_set(subs, elm_widget_tree_unfocusable_get(obj));
|
elm_widget_tree_unfocusable_set(subs, elm_widget_tree_unfocusable_get(obj));
|
||||||
}
|
}
|
||||||
|
|
||||||
//focus state eval on all children
|
//focus state eval on all children
|
||||||
|
|
Loading…
Reference in New Issue