Eo: don't reparent if it's the same parent.

SVN revision: 71774
This commit is contained in:
Tom Hacohen 2012-06-07 07:17:42 +00:00
parent 3333544ed6
commit e158149868
1 changed files with 3 additions and 1 deletions

View File

@ -1069,6 +1069,9 @@ eo_parent_set(Eo *obj, const Eo *parent)
if (parent)
EO_MAGIC_RETURN_VAL(parent, EO_EINA_MAGIC, EINA_FALSE);
if (obj->parent == parent)
return EINA_TRUE;
_eo_ref(obj);
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->line = line;
/* FIXME: Make it sorted. */
obj->xrefs = eina_inlist_prepend(obj->xrefs, EINA_INLIST_GET(xref));
#else
(void) ref_obj;