elementary/elm_widget : When elm_win sets as disabled,

elm_widget_focus_cycle does nothing. So should be separated as sepcial
case.


SVN revision: 61169
This commit is contained in:
WooHyun Jung 2011-07-09 05:13:35 +00:00
parent e1aed4de50
commit 094e70883a
1 changed files with 11 additions and 5 deletions

View File

@ -1809,15 +1809,21 @@ elm_widget_disabled_set(Evas_Object *obj,
if (sd->focused)
{
Evas_Object *o, *parent;
parent = obj;
for (;;)
o = elm_widget_parent_get(parent);
if (!o)
elm_widget_focused_object_clear(parent);
else
{
o = elm_widget_parent_get(parent);
if (!o) break;
parent = o;
for (;;)
{
o = elm_widget_parent_get(parent);
if (!o) break;
parent = o;
}
elm_widget_focus_cycle(parent, ELM_FOCUS_NEXT);
}
elm_widget_focus_cycle(parent, ELM_FOCUS_NEXT);
}
if (sd->disable_func) sd->disable_func(obj);
}