From c9dfe38ac2e344fde40de36b5ab0bbf01bf3f5aa Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Wed, 19 Dec 2012 22:34:37 +0000 Subject: [PATCH] e:slider: delete timer early to avoid losing it. Fix #2050 SVN revision: 81408 --- src/bin/e_slider.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_slider.c b/src/bin/e_slider.c index f5064bb..566fb22 100644 --- a/src/bin/e_slider.c +++ b/src/bin/e_slider.c @@ -255,10 +255,11 @@ _e_smart_set_timer(void *data) else if (pos > 1.0) pos = 1.0; if (sd->reversed) pos = 1.0 - pos; sd->changing++; + if (sd->set_timer) ecore_timer_del(sd->set_timer); + sd->set_timer = NULL; edje_object_part_drag_value_set(sd->edje_obj, "e.dragable.slider", pos, pos); edje_object_message_signal_process(sd->edje_obj); sd->changing--; - sd->set_timer = NULL; return ECORE_CALLBACK_CANCEL; } -- 2.7.4