From 2488944b4ee14c69673e25db08b36294cc3546b3 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Tue, 17 Nov 2020 16:49:27 +0900 Subject: [PATCH] elm_slider: fix callback in A11Y value interface this patch fixed a issue where callback was not called in a11y value interface @tizen_fix Change-Id: I811adf62d412048ef24c588275c7607cbe6f817d Signed-off-by: Bowon Ryu --- src/lib/elementary/elm_slider.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/elementary/elm_slider.c b/src/lib/elementary/elm_slider.c index a618b0d..5af2597 100644 --- a/src/lib/elementary/elm_slider.c +++ b/src/lib/elementary/elm_slider.c @@ -1963,11 +1963,18 @@ _elm_slider_efl_access_value_value_and_text_get(const Eo *obj EINA_UNUSED, Elm_S EOLIAN static Eina_Bool _elm_slider_efl_access_value_value_and_text_set(Eo *obj, Elm_Slider_Data *sd, double value, const char *text EINA_UNUSED) { + double oldval = sd->val; + if (sd->val_min > value) return EINA_FALSE; if (sd->val_max < value) return EINA_FALSE; + evas_object_smart_callback_call(obj, SIG_DRAG_START, NULL); sd->val = value; _val_set(obj); + evas_object_smart_changed(obj); + sd->val = oldval; + _slider_update(obj, EINA_TRUE); + evas_object_smart_callback_call(obj, SIG_DRAG_STOP, NULL); return EINA_TRUE; } -- 2.7.4