example - prefs 03 - disallow animation time of 0 (just not valid/sensible)
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 10 Dec 2013 09:04:34 +0000 (18:04 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 10 Dec 2013 09:05:09 +0000 (18:05 +0900)
this fixes T602

src/examples/prefs_example_03.c

index a55e7f1..2e3ffc9 100644 (file)
@@ -30,6 +30,7 @@ _update_animation_time(Evas_Object *prefs, Evas_Object *layout)
 
    elm_prefs_item_value_get(prefs, "main:config:options:animation_time", &value);
    eina_value_get(&value, &animation_time);
+   if (animation_time < 0.01) animation_time = 0.01;
    msg.val = animation_time;
    edje_object_message_send(elm_layout_edje_get(layout), EDJE_MESSAGE_FLOAT,
                             MSG_ID_VEL, &msg);