summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-03-08 14:05:25 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-03-08 15:46:45 -0800
commit34673ab983f2ebab038016b6a0aff4e160c43225 (patch)
tree9a14c99880eba69be940f0bb30a42579289c53fb /src/lib/eo/eo_base_class.c
parenta5d5965b68ef06ad04edb2530c06fb15a1993a2b (diff)
eo: ERR some warning when illegally using invalidated object.
Diffstat (limited to 'src/lib/eo/eo_base_class.c')
-rw-r--r--src/lib/eo/eo_base_class.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 25881f4..14aca16 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -629,7 +629,11 @@ _efl_object_parent_set(Eo *obj, Efl_Object_Data *pd, Eo *parent_id)
629 return; 629 return;
630 630
631 // Invalidated object can not be bring back to life 631 // Invalidated object can not be bring back to life
632 if (pd->invalidate) return ; 632 if (pd->invalidate)
633 {
634 ERR("Call of efl_parent_set(%p, %p) when object is already invalidated.\n", obj, parent_id);
635 return ;
636 }
633 637
634 EO_OBJ_POINTER(obj, eo_obj); 638 EO_OBJ_POINTER(obj, eo_obj);
635 if (pd->parent) 639 if (pd->parent)
@@ -713,8 +717,13 @@ _efl_object_invalidated_get(Eo *obj_id EINA_UNUSED, Efl_Object_Data *pd)
713} 717}
714 718
715EOLIAN static Efl_Object * 719EOLIAN static Efl_Object *
716_efl_object_provider_find(const Eo *obj EINA_UNUSED, Efl_Object_Data *pd, const Efl_Object *klass) 720_efl_object_provider_find(const Eo *obj, Efl_Object_Data *pd, const Efl_Object *klass)
717{ 721{
722 if (pd->invalidate)
723 {
724 ERR("Calling efl_provider_find(%p) after the object was invalidated.", obj);
725 return NULL;
726 }
718 if (pd->parent) return efl_provider_find(pd->parent, klass); 727 if (pd->parent) return efl_provider_find(pd->parent, klass);
719 return NULL; 728 return NULL;
720} 729}