[spinner] Whenever spinner is unfocused, timers related with value change should...
authorWooHyun Jung <wh0705.jung@samsung.com>
Tue, 6 Aug 2013 11:03:16 +0000 (20:03 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Tue, 6 Aug 2013 13:13:51 +0000 (22:13 +0900)
src/lib/elm_spinner.c

index 3d0afd8..71d3527 100644 (file)
@@ -490,11 +490,24 @@ _elm_spinner_smart_event(Evas_Object *obj,
 static Eina_Bool
 _elm_spinner_smart_on_focus(Evas_Object *obj)
 {
+   ELM_SPINNER_DATA_GET(obj, sd);
    if (!ELM_WIDGET_CLASS(_elm_spinner_parent_sc)->on_focus(obj))
      return EINA_FALSE;
 
    if (!elm_widget_focus_get(obj))
-     _entry_value_apply(obj);
+     {
+        if (sd->delay)
+          {
+             ecore_timer_del(sd->delay);
+             sd->delay = NULL;
+          }
+        if (sd->spin)
+          {
+             ecore_timer_del(sd->spin);
+             sd->spin = NULL;
+          }
+        _entry_value_apply(obj);
+     }
 
    return EINA_TRUE;
 }