forked from enlightenment/efl
elementary: enhance accessible name of elm_entry
The accessible name of elm_entry was guide text. The accessible name of elm_entry should be its text. If there is not text information, then guide text is using for accessible name.
This commit is contained in:
parent
4b10cf2e40
commit
0e885e41e5
|
@ -6038,8 +6038,14 @@ _elm_entry_elm_interface_atspi_accessible_name_get(Eo *obj, Elm_Entry_Data *sd)
|
||||||
const char *name;
|
const char *name;
|
||||||
name = elm_interface_atspi_accessible_name_get(efl_super(obj, ELM_ENTRY_CLASS));
|
name = elm_interface_atspi_accessible_name_get(efl_super(obj, ELM_ENTRY_CLASS));
|
||||||
if (name && strncmp("", name, 1)) return name;
|
if (name && strncmp("", name, 1)) return name;
|
||||||
|
|
||||||
|
if (sd->password) return NULL;
|
||||||
|
|
||||||
|
name = _elm_util_mkup_to_text(elm_entry_entry_get(obj));
|
||||||
|
if (name && strncmp("", name, 1)) return name;
|
||||||
|
|
||||||
const char *ret = edje_object_part_text_get(sd->entry_edje, "elm.guide");
|
const char *ret = edje_object_part_text_get(sd->entry_edje, "elm.guide");
|
||||||
return ret;
|
return _elm_util_mkup_to_text(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Efl.Part begin */
|
/* Efl.Part begin */
|
||||||
|
|
Loading…
Reference in New Issue