invalidate {
[[Called when parent reference is lost/set to $NULL and switch the state of the object to invalidate.]]
}
- noref {
- [[Triggered when no reference are keeping the object alive.
-
- The parent can be the last one keeping an object alive and so $noref can happen before $invalidate
- as it is only impacted by the ref/unref of the object.]]
- }
name_find @const {
[[Find a child object with the given name and return it.
((obj->user_refcount == 1 && !obj->parent) ||
(obj->user_refcount == 2 && obj->parent))))
{
- // We need to report efl_ref_count correctly during efl_noref, so fake it
+ // We need to report efl_ref_count correctly during EFL_EVENT_NOREF, so fake it
// by adjusting efl_ref_count while inside efl_unref (This should avoid
// infinite loop)
obj->unref_compensate = EINA_TRUE;
// The noref event should happen before any object in the
// tree get affected by the change in refcount.
efl_event_callback_call((Eo *) obj_id, EFL_EVENT_NOREF, NULL);
- efl_noref((Eo *) obj_id);
obj->unref_compensate = EINA_FALSE;
}
obj->invalidate = EINA_TRUE;
}
-static void
-_efl_object_noref(Eo *obj EINA_UNUSED, Efl_Object_Data *pd EINA_UNUSED)
-{
-}
-
static inline void
_efl_object_extension_free(Efl_Object_Extension *ext)
{