[atspi][popup] Add text of elm.text to accessible_name_get. 54/125154/1 submit/tizen/20170414.060354
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 14 Apr 2017 04:30:27 +0000 (13:30 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 14 Apr 2017 04:30:27 +0000 (13:30 +0900)
   Add text of elm.text to accessible_name_get
   Because to support styles such as toast using elm.text

Change-Id: I6f6edf5e218f3d81aeb64aef5e540ce679c1a2f9

src/lib/elc_popup.c

index 936c6285d1f9d7c4e790d1ebed5222242111bbfc..a91ef16c89fc4145865414f59509874de1bb4340 100644 (file)
@@ -2499,6 +2499,8 @@ _elm_popup_elm_interface_atspi_accessible_name_get(Eo *obj, Elm_Popup_Data *sd)
           eina_strbuf_append_printf(buf, ", %s", sd->title_text);
         else if (sd->text_content_obj)
           eina_strbuf_append_printf(buf, ", %s", elm_object_text_get(sd->text_content_obj));
+        else if (elm_object_part_text_get(obj, "elm.text"))
+          eina_strbuf_append_printf(buf, ", %s", elm_object_part_text_get(obj, "elm.text"));
      }
 
    accessible_name = eina_strbuf_string_steal(buf);