summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo de Almeida Gonzaga <ricardo@profusion.mobi>2012-10-18 19:18:08 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-18 19:18:08 +0000
commitd7757986c2bc141c193e00eefc1c5bf556711b0b (patch)
tree9dfd1cc7a72dd2cfe2e789b835310aa012a52640
parent02903536b3e294197bca174e1840537265c095e3 (diff)
ephysics: adjust sandbox body type combo alignment
Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi> SVN revision: 78194
-rw-r--r--legacy/ephysics/src/bin/ephysics_sandbox.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/legacy/ephysics/src/bin/ephysics_sandbox.c b/legacy/ephysics/src/bin/ephysics_sandbox.c
index 5695eea4dc..f02ea22292 100644
--- a/legacy/ephysics/src/bin/ephysics_sandbox.c
+++ b/legacy/ephysics/src/bin/ephysics_sandbox.c
@@ -530,21 +530,22 @@ _type_radio_add(Body_Data *bd, Evas_Object *bxparent)
530{ 530{
531 Evas_Object *dbx, *rd, *rdg; 531 Evas_Object *dbx, *rd, *rdg;
532 532
533 _label_add(bxparent, "Body Type");
534
535 dbx = elm_box_add(bxparent); 533 dbx = elm_box_add(bxparent);
536 elm_box_horizontal_set(dbx, EINA_TRUE); 534 elm_box_horizontal_set(dbx, EINA_TRUE);
537 evas_object_size_hint_weight_set(dbx, EVAS_HINT_EXPAND, 0.0); 535 evas_object_size_hint_weight_set(dbx, EVAS_HINT_EXPAND, 0.0);
538 evas_object_size_hint_align_set(dbx, EVAS_HINT_FILL, 0.0); 536 evas_object_size_hint_align_set(dbx, EVAS_HINT_FILL, 0.0);
539 elm_box_align_set(dbx, 0.0, 0.5); 537 elm_box_padding_set(dbx, 46, 0);
538 elm_box_align_set(dbx, 1, 0.5);
540 elm_box_pack_end(bxparent, dbx); 539 elm_box_pack_end(bxparent, dbx);
541 evas_object_show(dbx); 540 evas_object_show(dbx);
542 541
542 _label_add(dbx, "Body Type");
543
543 rd = elm_radio_add(bxparent); 544 rd = elm_radio_add(bxparent);
544 elm_radio_state_value_set(rd, 0); 545 elm_radio_state_value_set(rd, 0);
545 elm_object_text_set(rd, "Solid"); 546 elm_object_text_set(rd, "Solid");
546 evas_object_size_hint_align_set(rd, 0.5, 0.5); 547 evas_object_size_hint_align_set(rd, 1, 0.5);
547 evas_object_size_hint_weight_set(rd, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 548 evas_object_size_hint_weight_set(rd, 0, EVAS_HINT_EXPAND);
548 elm_box_pack_end(dbx, rd); 549 elm_box_pack_end(dbx, rd);
549 evas_object_show(rd); 550 evas_object_show(rd);
550 rdg = rd; 551 rdg = rd;
@@ -554,8 +555,8 @@ _type_radio_add(Body_Data *bd, Evas_Object *bxparent)
554 elm_radio_state_value_set(rd, 1); 555 elm_radio_state_value_set(rd, 1);
555 elm_radio_group_add(rd, rdg); 556 elm_radio_group_add(rd, rdg);
556 elm_object_text_set(rd, "Soft"); 557 elm_object_text_set(rd, "Soft");
557 evas_object_size_hint_align_set(rd, 0.5, 0.5); 558 evas_object_size_hint_align_set(rd, 1, 0.5);
558 evas_object_size_hint_weight_set(rd, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 559 evas_object_size_hint_weight_set(rd, 0, EVAS_HINT_EXPAND);
559 elm_box_pack_end(dbx, rd); 560 elm_box_pack_end(dbx, rd);
560 evas_object_show(rd); 561 evas_object_show(rd);
561 evas_object_smart_callback_add(rd, "changed", _type_set_cb, bd); 562 evas_object_smart_callback_add(rd, "changed", _type_set_cb, bd);