From 2569d725f8bd687e82ea202d600e59d1560dd9ba Mon Sep 17 00:00:00 2001 From: Oleksander Kostenko Date: Wed, 9 Nov 2016 16:16:34 +0200 Subject: [PATCH] TizenRefApp-7594 Make wallpaper-ui-service header handled by Screen-reader Change-Id: I18c4e70df1a3c01173f42a8dc2b3ebb93dd2612a Signed-off-by: Oleksander Kostenko --- res/edje/popup-wallpaper-main-view.edc | 2 +- src/wallpaper-ui-service-main.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/res/edje/popup-wallpaper-main-view.edc b/res/edje/popup-wallpaper-main-view.edc index c078cb2..9989df4 100644 --- a/res/edje/popup-wallpaper-main-view.edc +++ b/res/edje/popup-wallpaper-main-view.edc @@ -214,7 +214,7 @@ group { part { name: "elm.text.title"; type: TEXTBLOCK; scale: 1; - mouse_events: 0; + mouse_events: 1; //effect: TIZEN_GLOW_SHADOW; commented due to tizen_3.0 migration //effect: GLOW; diff --git a/src/wallpaper-ui-service-main.c b/src/wallpaper-ui-service-main.c index 9960658..932599b 100644 --- a/src/wallpaper-ui-service-main.c +++ b/src/wallpaper-ui-service-main.c @@ -756,6 +756,15 @@ HAPI void wallpaper_main_create_view(wallpaper_ui_service_appdata *data) elm_object_domain_translatable_part_text_set(preveiw_main_layout, "elm.text.title", PKGNAME, "IDS_LCKSCN_MBODY_WALLPAPERS"); elm_naviframe_item_title_enabled_set(nf_it, EINA_FALSE, EINA_FALSE); + Evas_Object *title = (Evas_Object *) edje_object_part_object_get(elm_layout_edje_get(preveiw_main_layout), "elm.text.title"); + if(title) + { + title = elm_access_object_register(title, preveiw_main_layout); + elm_atspi_accessible_name_set(title, "IDS_LCKSCN_MBODY_WALLPAPERS"); + elm_atspi_accessible_translation_domain_set(title, PKGNAME); + elm_atspi_accessible_reading_info_type_set(title, ELM_ACCESSIBLE_READING_INFO_TYPE_NAME); + } + /* Title Cancel Button */ Evas_Object *cancel_btn = elm_button_add(preveiw_main_layout); elm_object_style_set(cancel_btn, "naviframe/back_btn/custom"); -- 2.7.4