elm: fix improper atspi_relationship related usage 34/168234/3
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 25 Jan 2018 06:16:12 +0000 (15:16 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 26 Jan 2018 07:22:52 +0000 (07:22 +0000)
This is a migration issue.

Change-Id: Id5e36b65d71e4e6d09c6c404d64015bd0db650cd

src/lib/elementary/efl_access.c
src/lib/elementary/efl_access_legacy.h
src/lib/elementary/efl_ui_widget.c

index 71ec59c..76f8973 100644 (file)
@@ -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"
index 03a9fe1..80f4c1a 100644 (file)
@@ -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"
 
 /**
index a53e1f2..28596f4 100644 (file)
@@ -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