forked from enlightenment/efl
edje - more elaborated compare to reduce compare count.
This commit is contained in:
parent
46a3f01465
commit
3c9059e3e4
|
@ -182,17 +182,15 @@ _edje_smart_move(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
|||
Edje_Real_Part *ep;
|
||||
|
||||
ep = ed->table_parts[i];
|
||||
if ((ep->type == EDJE_RP_TYPE_TEXT) &&
|
||||
(ep->typedata.text))
|
||||
if ((ep->type == EDJE_RP_TYPE_TEXT) && (ep->typedata.text))
|
||||
{
|
||||
evas_object_move(ep->object,
|
||||
ed->x + ep->x + ep->typedata.text->offset.x,
|
||||
ed->y + ep->y + ep->typedata.text->offset.y);
|
||||
}
|
||||
else
|
||||
evas_object_move(ep->object,
|
||||
ed->x + ep->x,
|
||||
ed->y + ep->y);
|
||||
if (ep->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
|
||||
_edje_entry_real_part_configure(ed, ep);
|
||||
{
|
||||
evas_object_move(ep->object, ed->x + ep->x, ed->y + ep->y);
|
||||
if ((ep->type == EDJE_RP_TYPE_SWALLOW) &&
|
||||
(ep->typedata.swallow))
|
||||
{
|
||||
|
@ -203,6 +201,9 @@ _edje_smart_move(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
|||
ed->y + ep->y);
|
||||
}
|
||||
}
|
||||
if (ep->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
|
||||
_edje_entry_real_part_configure(ed, ep);
|
||||
}
|
||||
}
|
||||
// _edje_emit(ed, "move", NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue