eo: Allow efl_reuse to be called with a parent
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 06:43:28 +0000 (15:43 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 07:10:53 +0000 (16:10 +0900)
commit008ec97d84aed9adca4991be4ed358a217128708
tree85a619bb05b8bb23be4346350735da810bd93416
parent9ee741cf7fb5ff4f71bc041ee9cdaadf5000d8d3
eo: Allow efl_reuse to be called with a parent

If an object still has a parent inside the del intercept, we shouldn't
reset the "parent_sunk" flag. This would indeed break logic as
parent_sunk == false implies that a parent was never set, which means
the parent must be null. Right now this case isn't used but it can be
imagined with caches of evas objects (they should remain parented to
their evas).

@fix
src/lib/eo/eo.c