[ATSPI][popup] Support popup's atspi name interface.
authorJunsuChoi <jsuya.choi@samsung.com>
Thu, 22 Dec 2016 09:02:50 +0000 (18:02 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:11 +0000 (14:37 +0900)
   it can use "alert + text(name)" to set name of the popup object
   in application

Change-Id: I9c090ca22d8c026b705b3793991a847b0eeefac5

src/lib/elc_popup.c

index bc510ca97879917721d8b79b86f219f327964c3d..1b2fd004bf79127cc96303398f44388f233daef5 100644 (file)
@@ -2380,14 +2380,26 @@ _elm_popup_elm_interface_atspi_accessible_name_get(Eo *obj, Elm_Popup_Data *sd)
 {
    Eina_Strbuf *buf;
    char *accessible_name = NULL;
+   const char *_parent_name = NULL;
    ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
 
    buf = eina_strbuf_new();
    eina_strbuf_append_printf(buf, "%s", N_("Alert"));
-   if (sd->title_text)
-     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));
+
+   eo_do_super(obj, MY_CLASS, _parent_name = elm_interface_atspi_accessible_name_get());
+
+   if(_parent_name)
+     {
+        eina_strbuf_append_printf(buf, ", %s", _parent_name);
+     }
+   else
+     {
+        if (sd->title_text)
+          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));
+     }
+
    accessible_name = eina_strbuf_string_steal(buf);
    eina_strbuf_free(buf);