Summary:
When theme is changed by elm_layout_theme/file_set,
_edje_object_file_set_internal will be called internally
and it updates swallowed objects.
Elm.Layout doesn't need to reswallow its child objects.
(with current code, searching cost for real part occurs.)
Reviewers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3898
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
}
static void
-_parts_swallow_fix(Elm_Layout_Smart_Data *sd, Elm_Widget_Smart_Data *wd)
-{
- Eina_List *l;
- Elm_Layout_Sub_Object_Data *sub_d;
-
- EINA_LIST_FOREACH(sd->subs, l, sub_d)
- {
- if (sub_d->type == SWALLOW)
- {
- if (sub_d->part)
- edje_object_part_swallow(wd->resize_obj,
- sub_d->part, sub_d->obj);
- }
- }
-}
-
-static void
_parts_text_fix(Elm_Layout_Smart_Data *sd)
{
const Eina_List *l;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
- _parts_swallow_fix(sd, wd);
_parts_text_fix(sd);
_parts_signals_emit(sd);
_parts_cursors_apply(sd);