summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-09 20:00:27 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-09 20:00:27 +0000
commit26262cb7198bc86299aeae9c258229333d066095 (patch)
tree3989e129afc3b444249623351da7a02a73f57109
parent6f1b2ce82d365d965bdc13945ead7ed84c590b27 (diff)
ephysics: fix sandbox gravity and rate spinners
They were using wrong units, default values and not reasonable min / max. SVN revision: 77679
-rw-r--r--legacy/ephysics/src/bin/ephysics_sandbox.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/legacy/ephysics/src/bin/ephysics_sandbox.c b/legacy/ephysics/src/bin/ephysics_sandbox.c
index 151dd1feff..92af1dd0f0 100644
--- a/legacy/ephysics/src/bin/ephysics_sandbox.c
+++ b/legacy/ephysics/src/bin/ephysics_sandbox.c
@@ -502,10 +502,10 @@ _sandie_spinner_add(Evas_Object *win, Evas_Object *bxparent,
502 502
503 sp = elm_spinner_add(win); 503 sp = elm_spinner_add(win);
504 elm_spinner_label_format_set(sp, itemlb); 504 elm_spinner_label_format_set(sp, itemlb);
505 elm_spinner_min_max_set(sp, min, max);
505 elm_spinner_step_set(sp, step); 506 elm_spinner_step_set(sp, step);
506 elm_spinner_wrap_set(sp, ELM_WRAP_CHAR); 507 elm_spinner_wrap_set(sp, EINA_TRUE);
507 elm_spinner_value_set(sp, initial); 508 elm_spinner_value_set(sp, initial);
508 elm_spinner_min_max_set(sp, min, max);
509 evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5); 509 evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
510 evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 510 evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
511 elm_box_pack_end(bxparent, sp); 511 elm_box_pack_end(bxparent, sp);
@@ -727,16 +727,16 @@ _menu_items_create(Evas_Object *win, Evas_Object *bxparent,
727 727
728 bx = _category_add(win, bxparent, "EPhysics World"); 728 bx = _category_add(win, bxparent, "EPhysics World");
729 dbx = _sandie_double_spinner_box_add(win, bx, "Gravity"); 729 dbx = _sandie_double_spinner_box_add(win, bx, "Gravity");
730 widget = _sandie_spinner_add(win, dbx, "X:", "%1.2f m/s²", 730 widget = _sandie_spinner_add(win, dbx, "X:", "%1.2f px/s²",
731 0, 100, 0, 2); 731 -1000, 1000, 0, 2);
732 evas_object_smart_callback_add(widget, "delay,changed", _world_gravity_x_cb, 732 evas_object_smart_callback_add(widget, "delay,changed", _world_gravity_x_cb,
733 world); 733 world);
734 widget = _sandie_spinner_add(win, dbx, "Y:", "%1.2f m/s²", 734 widget = _sandie_spinner_add(win, dbx, "Y:", "%1.2f px/s²",
735 0, 100, 9.81, 2); 735 -1000, 1000, 294, 2);
736 evas_object_smart_callback_add(widget, "delay,changed", 736 evas_object_smart_callback_add(widget, "delay,changed",
737 _world_gravity_y_cb, world); 737 _world_gravity_y_cb, world);
738 widget = _sandie_spinner_add(win, bx, "Rate", "%1.0f pixel/meter", 738 widget = _sandie_spinner_add(win, bx, "Rate", "%1.0f pixel/meter",
739 0, 100, 20, 2); 739 1, 100, 30, 2);
740 evas_object_smart_callback_add(widget, "delay,changed", _world_rate_cb, 740 evas_object_smart_callback_add(widget, "delay,changed", _world_rate_cb,
741 world); 741 world);
742 widget = _sandie_spinner_add(win, bx, "Max Sleeping Time", "%1.0f s", 742 widget = _sandie_spinner_add(win, bx, "Max Sleeping Time", "%1.0f s",