jpeg pushed a commit to branch efl-1.20.

http://git.enlightenment.org/core/efl.git/commit/?id=85e97c7c293f6cf1c670ef71909c8fc796b31358

commit 85e97c7c293f6cf1c670ef71909c8fc796b31358
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Sep 28 15:43:28 2017 +0900

    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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 26b6b6f899..16c932c89d 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -983,7 +983,8 @@ efl_reuse(const Eo *_obj)
 {
    Eo *obj = (Eo *) _obj;
    efl_object_override(obj, NULL);
-   _efl_object_parent_sink_set(obj, EINA_FALSE);
+   if (!efl_parent_get(obj))
+     _efl_object_parent_sink_set(obj, EINA_FALSE);
 }
 
 void

-- 


Reply via email to