Add text for screen reader to buttons. 00/173400/1
authorjin-gyu.kim <jin-gyu.kim@samsung.com>
Wed, 21 Mar 2018 07:53:35 +0000 (16:53 +0900)
committerjin-gyu.kim <jin-gyu.kim@samsung.com>
Wed, 21 Mar 2018 07:53:39 +0000 (16:53 +0900)
There was no text for screen reader in buttons of wearable, because
those are implemented as picture.
But, screen reader should tell appropriate texts for each buttons.
So, add texts for screen reader using elementary API.

Change-Id: Id4f131f794007b72269410516578ffa888258422

src/notification-daemon/ui/PopupCheckWearable.h

index d59515a7df7b33867d143c2014461794ad1265fd..1b1af55eff9c966b6529fb59ebcf85d20eefe255 100644 (file)
@@ -100,6 +100,7 @@ public:
         evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
         elm_object_part_content_set(m_allowButton, "elm.swallow.content", icon);
         evas_object_show(icon);
+        elm_atspi_accessible_name_set(m_allowButton, Po::getAllowButtonMsg().c_str());
 
         m_denyButton = elm_button_add(m_popup);
         if (m_denyButton == nullptr) {
@@ -117,6 +118,7 @@ public:
         elm_image_file_set(icon, RES_DIR"/tw_ic_popup_btn_delete.png", NULL);
         elm_object_part_content_set(m_denyButton, "elm.swallow.content", icon);
         evas_object_show(icon);
+        elm_atspi_accessible_name_set(m_denyButton, Po::getDenyButtonMsg().c_str());
 
         evas_object_show(m_popup);
     }