From: Jihoon Kim Date: Sat, 10 Dec 2016 09:42:17 +0000 (+0900) Subject: Support accessibility on on/off option X-Git-Tag: accepted/tizen/3.0/common/20161212.060625~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F103909%2F2;p=platform%2Fcore%2Fuifw%2Fise-default.git Support accessibility on on/off option Change-Id: I28f7d6307f60b6edfe55d4be088c8eee4443394f Signed-off-by: Jihoon Kim --- diff --git a/src/include/option.h b/src/include/option.h index 8fc269d..407d83d 100644 --- a/src/include/option.h +++ b/src/include/option.h @@ -74,11 +74,13 @@ struct ITEMDATA char main_text[ITEM_DATA_STRING_LEN]; char sub_text[ITEM_DATA_STRING_LEN]; int mode; + Elm_Object_Item *item; ITEMDATA() { memset(main_text, 0, sizeof(char)*ITEM_DATA_STRING_LEN); memset(sub_text, 0, sizeof(char)*ITEM_DATA_STRING_LEN); mode = 0; + item = NULL; } }; diff --git a/src/option.cpp b/src/option.cpp index 7c083d0..48ef25c 100644 --- a/src/option.cpp +++ b/src/option.cpp @@ -575,6 +575,12 @@ static Evas_Object *_main_radio_gl_content_get(void *data, Evas_Object *obj, con evas_object_smart_callback_add(ck, "changed", check_character_pre_change_callback, (void*)(item_data->mode)); break; } + + if (ck) { + elm_atspi_accessible_relationship_append(ck, ELM_ATSPI_RELATION_CONTROLLED_BY, item_data->item); + elm_atspi_accessible_relationship_append(item_data->item, ELM_ATSPI_RELATION_CONTROLLER_FOR, ck); + elm_atspi_accessible_relationship_append(item_data->item, ELM_ATSPI_RELATION_DESCRIBED_BY, ck); + } } } @@ -790,6 +796,8 @@ static Elm_Object_Item * append_item(Evas_Object *genlist, enum SETTING_ITEM_ID if (display_only) elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); + main_itemdata[id].item = item; + return item; }