edje: simplify part handling as we are now guaranteed that a part as no parent when reaching the del intercept.
This commit is contained in:
parent
0bf7a5ea13
commit
94a9a733a5
|
@ -35,12 +35,10 @@ _part_proxy_del_cb(Eo *proxy, Eo **static_var)
|
||||||
if (*static_var)
|
if (*static_var)
|
||||||
{
|
{
|
||||||
if (*static_var != proxy)
|
if (*static_var != proxy)
|
||||||
efl_del_intercept_set(*static_var, NULL);
|
|
||||||
}
|
|
||||||
if (efl_parent_get(proxy))
|
|
||||||
{
|
{
|
||||||
efl_ref(proxy);
|
efl_del_intercept_set(*static_var, NULL);
|
||||||
efl_parent_set(proxy, NULL);
|
efl_unref(*static_var);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
efl_reuse(proxy);
|
efl_reuse(proxy);
|
||||||
*static_var = proxy;
|
*static_var = proxy;
|
||||||
|
|
Loading…
Reference in New Issue