static char *
_access_info_cb(void *data, Evas_Object *obj EINA_UNUSED)
{
- Eina_Strbuf *buf;
+ //TIZEN_ONLY(20220810): Do not prepend "Alert" to popup name
Elm_Popup_Data *priv = data;
- char *ret = NULL;
- if (priv->title_text)
- {
- buf = eina_strbuf_new();
- eina_strbuf_append_printf(buf, "%s, %s, %s", N_("Alert"), priv->title_text, N_("Title"));
- ret = eina_strbuf_string_steal(buf);
- eina_strbuf_free(buf);
- return strdup(ret);
- }
- return NULL;
+ return eina_strdup(priv->title_text);
+ //
}
//
ao = _elm_access_edje_object_part_object_register
(sd->main_layout, elm_layout_edje_get(sd->main_layout), ACCESS_TITLE_PART);
efl_access_object_role_set(ao, EFL_ACCESS_ROLE_HEADING);
+ //TIZEN_ONLY(20220810): Do not prepend "Alert" to popup name
+ efl_access_object_reading_info_type_set(ao, EFL_ACCESS_READING_INFO_TYPE_NAME | EFL_ACCESS_READING_INFO_TYPE_DESCRIPTION);
+ //
_elm_access_callback_set(_elm_access_info_get(ao),
ELM_ACCESS_INFO, _access_info_cb, sd);
}
if (name) return name;
buf = eina_strbuf_new();
- eina_strbuf_append_printf(buf, "%s", E_("Alert"));
+ //TIZEN_ONLY(20220810): Do not prepend "Alert" to popup name
if (sd->title_text)
- eina_strbuf_append_printf(buf, ", %s", 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));
+ 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"));
+ eina_strbuf_append_printf(buf, "%s", elm_object_part_text_get(obj, "elm.text"));
+ //
name = _elm_widget_accessible_plain_name_get(obj, eina_strbuf_string_get(buf));
eina_strbuf_free(buf);