diff options
author | Shinwoo Kim <cinoo.kim@samsung.com> | 2017-09-06 09:58:07 +0900 |
---|---|---|
committer | Shinwoo Kim <cinoo.kim@samsung.com> | 2017-09-06 09:58:07 +0900 |
commit | 0e885e41e50b625be39ade8846be9861cc010081 (patch) | |
tree | 5aa54a49640a6f084adf1f83d0006b8584889fcd | |
parent | 4b10cf2e40b030c121f5ddefff4983f34e4632be (diff) | |
download | efl-0e885e41e50b625be39ade8846be9861cc010081.tar.gz |
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.
-rw-r--r-- | src/lib/elementary/elm_entry.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_entry.c b/src/lib/elementary/elm_entry.c index 8631b4f388..b317e77124 100644 --- a/src/lib/elementary/elm_entry.c +++ b/src/lib/elementary/elm_entry.c @@ -6038,8 +6038,14 @@ _elm_entry_elm_interface_atspi_accessible_name_get(Eo *obj, Elm_Entry_Data *sd) const char *name; name = elm_interface_atspi_accessible_name_get(efl_super(obj, ELM_ENTRY_CLASS)); 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"); - return ret; + return _elm_util_mkup_to_text(ret); } /* Efl.Part begin */ |