summaryrefslogtreecommitdiff
path: root/legacy/ephysics/src/bin/ephysics_sandbox.c
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-16 23:12:29 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-16 23:12:29 +0000
commit647f74efd655f733e3ffe35f12b4b5cc7e461824 (patch)
tree7582873367705cce0aaa9380aa3c4b4dcbb0c2b4 /legacy/ephysics/src/bin/ephysics_sandbox.c
parent722506ddaae41fd05a32f7dcc06d49527f3e5ad1 (diff)
ephysics: start sandbox with some sections collapsed
SVN revision: 78085
Diffstat (limited to '')
-rw-r--r--legacy/ephysics/src/bin/ephysics_sandbox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/legacy/ephysics/src/bin/ephysics_sandbox.c b/legacy/ephysics/src/bin/ephysics_sandbox.c
index d18513a9a7..9b00e3a829 100644
--- a/legacy/ephysics/src/bin/ephysics_sandbox.c
+++ b/legacy/ephysics/src/bin/ephysics_sandbox.c
@@ -888,6 +888,7 @@ _category_add(Evas_Object *win, Evas_Object *bxparent, const char *label,
888 888
889 cfr = elm_frame_add(win); 889 cfr = elm_frame_add(win);
890 elm_frame_autocollapse_set(cfr, collapse); 890 elm_frame_autocollapse_set(cfr, collapse);
891 elm_frame_collapse_set(cfr, collapse);
891 elm_object_text_set(cfr, label); 892 elm_object_text_set(cfr, label);
892 evas_object_size_hint_weight_set(cfr, EVAS_HINT_EXPAND, 0.0); 893 evas_object_size_hint_weight_set(cfr, EVAS_HINT_EXPAND, 0.0);
893 evas_object_size_hint_fill_set(cfr, EVAS_HINT_FILL, 0.0); 894 evas_object_size_hint_fill_set(cfr, EVAS_HINT_FILL, 0.0);
@@ -1282,7 +1283,7 @@ _menu_items_create(Evas_Object *win, Evas_Object *bxparent,
1282{ 1283{
1283 Evas_Object *bx, *widget; 1284 Evas_Object *bx, *widget;
1284 1285
1285 bx = _category_add(win, bxparent, "World", EINA_TRUE); 1286 bx = _category_add(win, bxparent, "World", EINA_FALSE);
1286 _sandie_label_add(win, bx, "Gravity (px/s²)"); 1287 _sandie_label_add(win, bx, "Gravity (px/s²)");
1287 widget = _sandie_slider_add(win, bx, "X:", "%1.2f", 1288 widget = _sandie_slider_add(win, bx, "X:", "%1.2f",
1288 -1000, 1000, 0); 1289 -1000, 1000, 0);
@@ -1301,7 +1302,7 @@ _menu_items_create(Evas_Object *win, Evas_Object *bxparent,
1301 evas_object_smart_callback_add(widget, "delay,changed", 1302 evas_object_smart_callback_add(widget, "delay,changed",
1302 _world_max_sleeping_time_cb, world); 1303 _world_max_sleeping_time_cb, world);
1303 1304
1304 bx = _category_add(win, bxparent, "Boundaries", EINA_TRUE); 1305 bx = _category_add(win, bxparent, "Boundaries", EINA_FALSE);
1305 widget = _sandie_slider_add(win, bx, "Friction", "%1.3f", 1306 widget = _sandie_slider_add(win, bx, "Friction", "%1.3f",
1306 0, 1, 0.5); 1307 0, 1, 0.5);
1307 evas_object_data_set(widget, "win", win); 1308 evas_object_data_set(widget, "win", win);