elementary/elm_widget : When elm_widget_sub_object_del is called with

focused sub-object, focus should be reverted back to the latest focused object.


SVN revision: 65399
This commit is contained in:
WooHyun Jung 2011-11-19 03:47:27 +00:00
parent 31d8a4817f
commit d6be239f73
1 changed files with 5 additions and 1 deletions

View File

@ -994,7 +994,11 @@ elm_widget_sub_object_del(Evas_Object *obj,
}
else
sd->subobjs = eina_list_remove(sd->subobjs, sobj);
if (elm_widget_focus_get(sobj)) _unfocus_parents(obj);
if (elm_widget_focus_get(sobj))
{
elm_widget_tree_unfocusable_set(sobj, EINA_TRUE);
elm_widget_tree_unfocusable_set(sobj, EINA_FALSE);
}
if ((sd->child_can_focus) && (_is_focusable(sobj)))
{
Evas_Object *subobj;