summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-12 14:33:23 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-16 14:48:47 +0200
commitafb2daa99665796f2385e6ce6de93f98b53055c5 (patch)
treea51f919a8a1e99b87b99114d72651ee918492208
parent06ed9b39afcb75704fddeba3213618beb8a2b3fa (diff)
downloadefl-afb2daa99665796f2385e6ce6de93f98b53055c5.tar.gz
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 <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9319
-rw-r--r--src/lib/elementary/elm_actionslider.c3
1 files changed, 2 insertions, 1 deletions
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);