From 989f6c27d2a097c33dd91fc30a4b7d8d40684d60 Mon Sep 17 00:00:00 2001 From: Lukasz Stanislawski Date: Thu, 16 Nov 2017 12:05:39 +0900 Subject: [PATCH] elm: enhance access name for spinner Summary: Try to take access name from internal entry object or text button first. Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5480 --- src/lib/elementary/elm_spinner.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/lib/elementary/elm_spinner.c b/src/lib/elementary/elm_spinner.c index 88c5335..d269a3e 100644 --- a/src/lib/elementary/elm_spinner.c +++ b/src/lib/elementary/elm_spinner.c @@ -1691,12 +1691,20 @@ _elm_spinner_efl_access_value_increment_get(Eo *obj EINA_UNUSED, Elm_Spinner_Dat } EOLIAN static const char* -_elm_spinner_efl_access_name_get(Eo *obj, Elm_Spinner_Data *sd EINA_UNUSED) +_elm_spinner_efl_access_name_get(Eo *obj, Elm_Spinner_Data *sd) { - const char *name; + const char *name, *ret; name = efl_access_name_get(efl_super(obj, ELM_SPINNER_CLASS)); if (name) return name; - const char *ret = elm_layout_text_get(obj, "elm.text"); + if (sd->button_layout) + { + if (sd->entry_visible) + ret = elm_object_text_get(sd->ent); + else + ret = elm_object_text_get(sd->text_button); + } + else + ret = elm_layout_text_get(obj, "elm.text"); return ret; } -- 2.7.4