summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-23 19:35:03 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:21 -0700
commit38d8b615c829d52e21175d18b6cb494f2864b7db (patch)
tree956aaaa3c8f11345ea611ebaabf60162109a16c6 /src/lib/eo/eo_base_class.c
parent384f30c8ecc95c24582c65fa920d7af99a766894 (diff)
eo: an object is invalidated if it is invalidated or if any parent is invalidated.
Diffstat (limited to 'src/lib/eo/eo_base_class.c')
-rw-r--r--src/lib/eo/eo_base_class.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 8687b9b..815d6ba 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -811,12 +811,14 @@ _efl_object_finalized_get(const Eo *obj_id, Efl_Object_Data *pd EINA_UNUSED)
811} 811}
812 812
813EOLIAN static Eina_Bool 813EOLIAN static Eina_Bool
814_efl_object_invalidated_get(const Eo *obj_id, Efl_Object_Data *pd EINA_UNUSED) 814_efl_object_invalidated_get(const Eo *obj_id, Efl_Object_Data *pd)
815{ 815{
816 Eina_Bool invalidate; 816 Eina_Bool invalidate;
817 EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, EINA_TRUE); 817 EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, EINA_TRUE);
818 invalidate = obj->invalidate || obj->is_invalidating; 818 invalidate = obj->invalidate || obj->is_invalidating;
819 EO_OBJ_DONE(obj_id); 819 EO_OBJ_DONE(obj_id);
820 if (!invalidate && pd && pd->parent)
821 return efl_invalidated_get(pd->parent);
820 return invalidate; 822 return invalidate;
821} 823}
822 824