summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_interface_atspi_accessible.c
diff options
context:
space:
mode:
authorLukasz Stanislawski <lukasz.stanislawski@gmail.com>2016-11-14 11:10:57 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-11-14 11:10:59 -0800
commit93b509d66450418e66cf36ca06add65100f3afb2 (patch)
treec77b241cd0ce8eceed5c68d2ab69aa4f4375fa9f /src/lib/elementary/elm_interface_atspi_accessible.c
parent883d41f0062b947c1d8793b5c6f9c586e20f484b (diff)
elementary: implement destructor in atspi mixin
Summary: Make atspi mixin inherit from Efl.Interface class and add Efl.Object as it extensions class to gain acccess to destructor function. This allow to better share code between implementations and avoid possible mistakes during accessibilityt implementations. Reviewers: cedric, jpeg, raster, kimcinoo Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4393 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/elementary/elm_interface_atspi_accessible.c')
-rw-r--r--src/lib/elementary/elm_interface_atspi_accessible.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_interface_atspi_accessible.c b/src/lib/elementary/elm_interface_atspi_accessible.c
index 22afbaabeb..09ddea8ffe 100644
--- a/src/lib/elementary/elm_interface_atspi_accessible.c
+++ b/src/lib/elementary/elm_interface_atspi_accessible.c
@@ -598,4 +598,15 @@ _elm_interface_atspi_accessible_type_set(Eo *obj, Elm_Interface_Atspi_Accessible
598 pd->type = val; 598 pd->type = val;
599} 599}
600 600
601EOLIAN void
602_elm_interface_atspi_accessible_efl_object_destructor(Eo *obj, Elm_Interface_Atspi_Accessible_Data *pd)
603{
604 eina_stringshare_del(pd->name);
605 eina_stringshare_del(pd->description);
606 eina_stringshare_del(pd->translation_domain);
607 elm_atspi_relation_set_free(pd->relations);
608
609 efl_destructor(efl_super(obj, ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN));
610}
611
601#include "elm_interface_atspi_accessible.eo.c" 612#include "elm_interface_atspi_accessible.eo.c"