From: Shinwoo Kim Date: Thu, 25 Jan 2018 06:16:12 +0000 (+0900) Subject: elm: fix improper atspi_relationship related usage X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca7ba4eb7db7f5e905791afa4728daa5b138c62a;p=platform%2Fupstream%2Fefl.git elm: fix improper atspi_relationship related usage This is a migration issue. Change-Id: Id5e36b65d71e4e6d09c6c404d64015bd0db650cd --- diff --git a/src/lib/elementary/efl_access.c b/src/lib/elementary/efl_access.c index 71ec59c..76f8973 100644 --- a/src/lib/elementary/efl_access.c +++ b/src/lib/elementary/efl_access.c @@ -1077,6 +1077,11 @@ elm_atspi_accessible_state_notify(Elm_Interface_Atspi_Accessible *obj, Elm_Atspi { efl_access_state_notify(obj, state_types_mask, recursive); } + +EAPI void elm_atspi_relation_set_free(Elm_Atspi_Relation_Set *set) +{ + efl_access_relation_set_free(set); +} // #include "efl_access.eo.c" diff --git a/src/lib/elementary/efl_access_legacy.h b/src/lib/elementary/efl_access_legacy.h index 03a9fe1..80f4c1a 100644 --- a/src/lib/elementary/efl_access_legacy.h +++ b/src/lib/elementary/efl_access_legacy.h @@ -795,6 +795,15 @@ EAPI void elm_atspi_accessible_relationships_clear(Elm_Interface_Atspi_Accessibl */ EAPI void elm_atspi_accessible_state_notify(Elm_Interface_Atspi_Accessible *obj, Elm_Atspi_State_Set state_types_mask, Eina_Bool recursive); +/** + * @internal + * Frees Elm_Atspi_Relation_Set + * + * @if MOBILE @since_tizen 3.0 + * @elseif WEARABLE @since_tizen 3.0 + * @endif + */ +EAPI void elm_atspi_relation_set_free(Elm_Atspi_Relation_Set *set); #include "efl_access.eo.legacy.h" /** diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c index a53e1f2..28596f4 100644 --- a/src/lib/elementary/efl_ui_widget.c +++ b/src/lib/elementary/efl_ui_widget.c @@ -6202,13 +6202,13 @@ _efl_ui_widget_efl_access_relation_set_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart EOLIAN static Eina_Bool _efl_ui_widget_efl_access_relationship_append(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd, Efl_Access_Relation_Type type, const Eo *relation_obj) { - return efl_access_relationship_append(&sd->atspi_custom_relations, type, relation_obj); + return efl_access_relation_set_relation_append(&sd->atspi_custom_relations, type, relation_obj); } EOLIAN static void _efl_ui_widget_efl_access_relationship_remove(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd, Efl_Access_Relation_Type type, const Eo *relation_obj) { - efl_access_relationship_remove(&sd->atspi_custom_relations, type, relation_obj); + efl_access_relation_set_relation_remove(&sd->atspi_custom_relations, type, relation_obj); } EOLIAN static void @@ -6227,13 +6227,13 @@ _elm_widget_item_efl_access_relation_set_get(Eo *obj EINA_UNUSED, Elm_Widget_Ite EOLIAN static Eina_Bool _elm_widget_item_efl_access_relationship_append(Eo *obj EINA_UNUSED, Elm_Widget_Item_Data *sd, Efl_Access_Relation_Type type, const Eo *relation_obj) { - return efl_access_relationship_append(&sd->atspi_custom_relations, type, relation_obj); + return efl_access_relation_set_relation_append(&sd->atspi_custom_relations, type, relation_obj); } EOLIAN static void _elm_widget_item_efl_access_relationship_remove(Eo *obj EINA_UNUSED, Elm_Widget_Item_Data *sd, Efl_Access_Relation_Type type, const Eo *relation_obj) { - efl_access_relationship_remove(&sd->atspi_custom_relations, type, relation_obj); + efl_access_relation_set_relation_remove(&sd->atspi_custom_relations, type, relation_obj); } EOLIAN static void