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)
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
548} 548}
549 549
550EOLIAN static void 550EOLIAN static void
551_elm_actionslider_indicator_pos_set(Eo *obj, Elm_Actionslider_Data *_pd EINA_UNUSED, Elm_Actionslider_Pos pos) 551_elm_actionslider_indicator_pos_set(Eo *obj, Elm_Actionslider_Data *sd, Elm_Actionslider_Pos pos)
552{ 552{
553 double position = 0.0; 553 double position = 0.0;
554 554
@@ -559,6 +559,7 @@ _elm_actionslider_indicator_pos_set(Eo *obj, Elm_Actionslider_Data *_pd EINA_UNU
559 if (pos == ELM_ACTIONSLIDER_CENTER) position = 0.5; 559 if (pos == ELM_ACTIONSLIDER_CENTER) position = 0.5;
560 else if (pos == ELM_ACTIONSLIDER_RIGHT) 560 else if (pos == ELM_ACTIONSLIDER_RIGHT)
561 position = 1.0; 561 position = 1.0;
562 sd->final_position = position;
562 563
563 edje_object_part_drag_value_set 564 edje_object_part_drag_value_set
564 (wd->resize_obj, "elm.drag_button_base", position, 0.5); 565 (wd->resize_obj, "elm.drag_button_base", position, 0.5);