forked from enlightenment/efl
Eo: don't reparent if it's the same parent.
SVN revision: 71774
This commit is contained in:
parent
3333544ed6
commit
e158149868
|
@ -1069,6 +1069,9 @@ eo_parent_set(Eo *obj, const Eo *parent)
|
||||||
if (parent)
|
if (parent)
|
||||||
EO_MAGIC_RETURN_VAL(parent, EO_EINA_MAGIC, EINA_FALSE);
|
EO_MAGIC_RETURN_VAL(parent, EO_EINA_MAGIC, EINA_FALSE);
|
||||||
|
|
||||||
|
if (obj->parent == parent)
|
||||||
|
return EINA_TRUE;
|
||||||
|
|
||||||
_eo_ref(obj);
|
_eo_ref(obj);
|
||||||
|
|
||||||
if (obj->parent)
|
if (obj->parent)
|
||||||
|
@ -1166,7 +1169,6 @@ eo_xref_internal(Eo *obj, const Eo *ref_obj, const char *file, int line)
|
||||||
xref->file = file;
|
xref->file = file;
|
||||||
xref->line = line;
|
xref->line = line;
|
||||||
|
|
||||||
/* FIXME: Make it sorted. */
|
|
||||||
obj->xrefs = eina_inlist_prepend(obj->xrefs, EINA_INLIST_GET(xref));
|
obj->xrefs = eina_inlist_prepend(obj->xrefs, EINA_INLIST_GET(xref));
|
||||||
#else
|
#else
|
||||||
(void) ref_obj;
|
(void) ref_obj;
|
||||||
|
|
Loading…
Reference in New Issue