summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2016-12-13 09:33:10 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2016-12-13 09:33:10 +0900
commit7620c6473776bdf94468de0dc62c344271a2e1db (patch)
tree76e77b1f11d4b09b8de41a796294b43d7e85324d
parent73e57caa38ab187398f608099f4bdae5c1c1bed2 (diff)
downloadinputmethod-setting-7620c6473776bdf94468de0dc62c344271a2e1db.tar.gz
inputmethod-setting-7620c6473776bdf94468de0dc62c344271a2e1db.tar.bz2
inputmethod-setting-7620c6473776bdf94468de0dc62c344271a2e1db.zip
Support accessibility in keyboard selector
Change-Id: I397784595966ae92cbceebddbff5722902ae5d6d Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
-rw-r--r--im_setting_list/input_method_setting_list_popup_view.cpp5
-rwxr-xr-xim_setting_selector/input_method_setting_selector_ui.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/im_setting_list/input_method_setting_list_popup_view.cpp b/im_setting_list/input_method_setting_list_popup_view.cpp
index e444d63..9e9c410 100644
--- a/im_setting_list/input_method_setting_list_popup_view.cpp
+++ b/im_setting_list/input_method_setting_list_popup_view.cpp
@@ -224,6 +224,8 @@ static char *im_setting_list_genlist_item_label_get(void *data, Evas_Object *obj
static Evas_Object *im_setting_list_genlist_item_icon_get(void *data, Evas_Object *obj, const char *part)
{
int index = (int)reinterpret_cast<long>(data);
+ Elm_Object_Item *it = elm_genlist_nth_item_get(obj, index);
+
if (!strcmp(part, "elm.swallow.end") ||
!strcmp(part, "elm.icon")) {
Evas_Object *radio = elm_radio_add(obj);
@@ -233,6 +235,9 @@ static Evas_Object *im_setting_list_genlist_item_icon_get(void *data, Evas_Objec
elm_radio_group_add(radio, group_radio);
evas_object_show(radio);
+ elm_atspi_accessible_relationship_append(it, ELM_ATSPI_RELATION_DESCRIBED_BY, radio);
+ elm_atspi_accessible_relationship_append(radio, ELM_ATSPI_RELATION_CONTROLLED_BY, it);
+
return radio;
}
return NULL;
diff --git a/im_setting_selector/input_method_setting_selector_ui.cpp b/im_setting_selector/input_method_setting_selector_ui.cpp
index 3677b5d..bd402fc 100755
--- a/im_setting_selector/input_method_setting_selector_ui.cpp
+++ b/im_setting_selector/input_method_setting_selector_ui.cpp
@@ -285,6 +285,8 @@ static char *im_setting_selector_genlist_item_label_get(void *data, Evas_Object
static Evas_Object *im_setting_selector_genlist_item_icon_get(void *data, Evas_Object *obj, const char *part)
{
int index = (int)reinterpret_cast<long>(data);
+ Elm_Object_Item *it = elm_genlist_nth_item_get(obj, index);
+
if (!strcmp(part, "elm.swallow.end") ||
!strcmp(part, "elm.icon")) {
Evas_Object *radio = elm_radio_add(obj);
@@ -294,6 +296,9 @@ static Evas_Object *im_setting_selector_genlist_item_icon_get(void *data, Evas_O
elm_radio_group_add(radio, group_radio);
evas_object_show(radio);
+ elm_atspi_accessible_relationship_append(it, ELM_ATSPI_RELATION_DESCRIBED_BY, radio);
+ elm_atspi_accessible_relationship_append(radio, ELM_ATSPI_RELATION_CONTROLLED_BY, it);
+
return radio;
}
return NULL;