}
if (_elm_widget_is(sobj))
{
- Smart_Data *sd2 = evas_object_smart_data_get(sobj);
- if (sd2)
+ if (elm_widget_focus_get(sobj))
{
- sd2->parent_obj = NULL;
- if (sd2->resize_obj == sobj)
- sd2->resize_obj = NULL;
- else
- sd->subobjs = eina_list_remove(sd->subobjs, sobj);
+ elm_widget_tree_unfocusable_set(sobj, EINA_TRUE);
+ elm_widget_tree_unfocusable_set(sobj, EINA_FALSE);
}
- else
- sd->subobjs = eina_list_remove(sd->subobjs, sobj);
- if (elm_widget_focus_get(sobj)) _unfocus_parents(obj);
if ((sd->child_can_focus) && (_is_focusable(sobj)))
{
Evas_Object *subobj;
}
}
}
+ Smart_Data *sd2 = evas_object_smart_data_get(sobj);
+ if (sd2)
+ {
+ sd2->parent_obj = NULL;
+ if (sd2->resize_obj == sobj)
+ sd2->resize_obj = NULL;
+ else
+ sd->subobjs = eina_list_remove(sd->subobjs, sobj);
+ }
+ else
+ sd->subobjs = eina_list_remove(sd->subobjs, sobj);
}
else
sd->subobjs = eina_list_remove(sd->subobjs, sobj);