forked from enlightenment/efl
elementary: remove redundant reswallow logic in elm_layout
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>
This commit is contained in:
parent
29a9be35ee
commit
3f17d0d090
|
@ -223,23 +223,6 @@ _parts_signals_emit(Elm_Layout_Smart_Data *sd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
static void
|
||||||
_parts_text_fix(Elm_Layout_Smart_Data *sd)
|
_parts_text_fix(Elm_Layout_Smart_Data *sd)
|
||||||
{
|
{
|
||||||
|
@ -333,7 +316,6 @@ _visuals_refresh(Evas_Object *obj,
|
||||||
|
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
|
||||||
|
|
||||||
_parts_swallow_fix(sd, wd);
|
|
||||||
_parts_text_fix(sd);
|
_parts_text_fix(sd);
|
||||||
_parts_signals_emit(sd);
|
_parts_signals_emit(sd);
|
||||||
_parts_cursors_apply(sd);
|
_parts_cursors_apply(sd);
|
||||||
|
|
Loading…
Reference in New Issue