summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkumar navneet <k.navneet@samsung.com>2015-05-19 21:09:38 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-05-19 21:09:38 +0900
commitb4aef271e23de1cb6e1f34d2764e8b87690dcecd (patch)
tree3ba61136164abb3246427ed14516c00e052acd00
parent566f0a488a37b3fde8b22cfa6762ad3ed12b260c (diff)
Patch to fix accessibility issue in coloselector item.
Summary: Issue: accessibility not working in colorselector item Soln: Fixed accessibility issue Signed-off By: Kumar Navneet <k.navneet@samsung.com> Signed-off By: Shilpa Singh <shilpa.singh@samsung.com> Test Plan: export ELM_ACCESS_MODE=1, run elementary test and test color selector palette item. Reviewers: cedric, Hermet, shilpasingh, raster Reviewed By: shilpasingh Subscribers: govi, poornima.srinivasan Differential Revision: https://phab.enlightenment.org/D2496
-rw-r--r--src/lib/elm_colorselector.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c
index 0fbfda66c..7ffbf68c0 100644
--- a/src/lib/elm_colorselector.c
+++ b/src/lib/elm_colorselector.c
@@ -1410,6 +1410,16 @@ _access_info_cb(void *data, Evas_Object *obj EINA_UNUSED)
1410 return ret; 1410 return ret;
1411} 1411}
1412 1412
1413static void
1414_access_activate_cb(void *data EINA_UNUSED,
1415 Evas_Object *part_obj EINA_UNUSED,
1416 Elm_Object_Item *eo_item)
1417{
1418 ELM_COLOR_ITEM_DATA_GET(eo_item, item);
1419 elm_object_item_signal_emit(eo_item, "elm,state,selected", "elm");
1420 _on_color_released(item, NULL, NULL, NULL);
1421}
1422
1413EOLIAN static Evas_Object* 1423EOLIAN static Evas_Object*
1414_elm_color_item_elm_widget_item_access_register(Eo *eo_it, Elm_Color_Item_Data *it) 1424_elm_color_item_elm_widget_item_access_register(Eo *eo_it, Elm_Color_Item_Data *it)
1415{ 1425{
@@ -1421,7 +1431,8 @@ _elm_color_item_elm_widget_item_access_register(Eo *eo_it, Elm_Color_Item_Data *
1421 ai = _elm_access_info_get(it->base->access_obj); 1431 ai = _elm_access_info_get(it->base->access_obj);
1422 1432
1423 _elm_access_text_set(ai, ELM_ACCESS_TYPE, E_("color selector palette item")); 1433 _elm_access_text_set(ai, ELM_ACCESS_TYPE, E_("color selector palette item"));
1424 _elm_access_callback_set(ai, ELM_ACCESS_INFO, _access_info_cb, eo_it); 1434 _elm_access_callback_set(ai, ELM_ACCESS_INFO, _access_info_cb, it);
1435 _elm_access_activate_callback_set(ai, _access_activate_cb, EO_OBJ(it));
1425 1436
1426 return res; 1437 return res;
1427} 1438}
@@ -1481,7 +1492,7 @@ _elm_color_item_eo_base_constructor(Eo *eo_item, Elm_Color_Item_Data *item)
1481 1492
1482 // ACCESS 1493 // ACCESS
1483 if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) 1494 if (_elm_config->access_mode == ELM_ACCESS_MODE_ON)
1484 eo_do(obj, elm_wdg_item_access_register()); 1495 eo_do(eo_item, elm_wdg_item_access_register());
1485} 1496}
1486 1497
1487EOLIAN static void 1498EOLIAN static void