bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=afb2daa99665796f2385e6ce6de93f98b53055c5

commit afb2daa99665796f2385e6ce6de93f98b53055c5
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Fri Jul 12 14:33:23 2019 -0400

    elm_actionslider: fix internal state when programmatically changing value
    
    this value is supposed to always match the current widget state and signal
    emission breaks if the states are not consistent
    
    @fix
    
    Reviewed-by: Marcel Hollerbach <m...@marcel-hollerbach.de>
    Differential Revision: https://phab.enlightenment.org/D9319
---
 src/lib/elementary/elm_actionslider.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_actionslider.c 
b/src/lib/elementary/elm_actionslider.c
index 07f45ed8c8..e26abbda29 100644
--- a/src/lib/elementary/elm_actionslider.c
+++ b/src/lib/elementary/elm_actionslider.c
@@ -548,7 +548,7 @@ _elm_actionslider_efl_object_constructor(Eo *obj, 
Elm_Actionslider_Data *_pd EIN
 }
 
 EOLIAN static void
-_elm_actionslider_indicator_pos_set(Eo *obj, Elm_Actionslider_Data *_pd 
EINA_UNUSED, Elm_Actionslider_Pos pos)
+_elm_actionslider_indicator_pos_set(Eo *obj, Elm_Actionslider_Data *sd, 
Elm_Actionslider_Pos pos)
 {
    double position = 0.0;
 
@@ -559,6 +559,7 @@ _elm_actionslider_indicator_pos_set(Eo *obj, 
Elm_Actionslider_Data *_pd EINA_UNU
    if (pos == ELM_ACTIONSLIDER_CENTER) position = 0.5;
    else if (pos == ELM_ACTIONSLIDER_RIGHT)
      position = 1.0;
+   sd->final_position = position;
 
    edje_object_part_drag_value_set
      (wd->resize_obj, "elm.drag_button_base", position, 0.5);

-- 


Reply via email to