forked from enlightenment/efl
evas: perform hide on objects during del only during destruction
this matches pre-eo behavior and prevents hide-on-delete from altering
delete mechanics
ref df2b31b63e
This commit is contained in:
parent
7c4fce78df
commit
76002e6c84
|
@ -725,7 +725,6 @@ evas_object_del(Evas_Object *eo_obj)
|
||||||
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, MY_CLASS);
|
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, MY_CLASS);
|
||||||
|
|
||||||
if (!obj) return;
|
if (!obj) return;
|
||||||
evas_object_hide(eo_obj);
|
|
||||||
evas_object_async_block(obj);
|
evas_object_async_block(obj);
|
||||||
if (obj->delete_me || obj->eo_del_called) return;
|
if (obj->delete_me || obj->eo_del_called) return;
|
||||||
if (obj->ref > 0)
|
if (obj->ref > 0)
|
||||||
|
@ -733,7 +732,7 @@ evas_object_del(Evas_Object *eo_obj)
|
||||||
obj->del_ref = EINA_TRUE;
|
obj->del_ref = EINA_TRUE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
evas_object_hide(eo_obj);
|
||||||
obj->eo_del_called = EINA_TRUE;
|
obj->eo_del_called = EINA_TRUE;
|
||||||
|
|
||||||
eo_del(eo_obj);
|
eo_del(eo_obj);
|
||||||
|
|
Loading…
Reference in New Issue