summaryrefslogtreecommitdiff
path: root/src/examples/gengrid_example.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung@gmail.com>2013-08-13 02:25:15 +0900
committerDaniel Juyung Seo <seojuyung@gmail.com>2013-08-13 02:25:15 +0900
commit5ada30814d3d5a58134844665b48c6cec7e9c60f (patch)
tree2abd8d651730431310f60c165a615dead6f6aa0f /src/examples/gengrid_example.c
parent6661e117902f8cd7a451396acde0ba2e9ee5d184 (diff)
gengrid_example.c: refactoring layout.
This fixes T239.
Diffstat (limited to 'src/examples/gengrid_example.c')
-rw-r--r--src/examples/gengrid_example.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/examples/gengrid_example.c b/src/examples/gengrid_example.c
index 6ec2e5969..14ec2a9f1 100644
--- a/src/examples/gengrid_example.c
+++ b/src/examples/gengrid_example.c
@@ -435,13 +435,14 @@ elm_main(int argc,
435 grid = elm_gengrid_add(win); 435 grid = elm_gengrid_add(win);
436 elm_gengrid_item_size_set(grid, 150, 150); 436 elm_gengrid_item_size_set(grid, 150, 150);
437 evas_object_size_hint_weight_set(grid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 437 evas_object_size_hint_weight_set(grid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
438 evas_object_size_hint_align_set(grid, EVAS_HINT_FILL, EVAS_HINT_FILL);
438 elm_box_pack_end(bx, grid); 439 elm_box_pack_end(bx, grid);
439 evas_object_smart_callback_add(grid, "clicked,double", _double_click, NULL); 440 evas_object_smart_callback_add(grid, "clicked,double", _double_click, NULL);
440 evas_object_smart_callback_add(grid, "longpressed", _long_pressed, NULL); 441 evas_object_smart_callback_add(grid, "longpressed", _long_pressed, NULL);
441 evas_object_show(grid); 442 evas_object_show(grid);
442 443
443 hbx_1 = elm_box_add(win); 444 hbx_1 = elm_box_add(win);
444 evas_object_size_hint_weight_set(hbx_1, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 445 evas_object_size_hint_weight_set(hbx_1, EVAS_HINT_EXPAND, 0.0);
445 elm_box_horizontal_set(hbx_1, EINA_TRUE); 446 elm_box_horizontal_set(hbx_1, EINA_TRUE);
446 elm_box_pack_end(bx, hbx_1); 447 elm_box_pack_end(bx, hbx_1);
447 evas_object_show(hbx_1); 448 evas_object_show(hbx_1);
@@ -499,7 +500,7 @@ elm_main(int argc,
499 evas_object_show(sp); 500 evas_object_show(sp);
500 501
501 hbx_2 = elm_box_add(win); 502 hbx_2 = elm_box_add(win);
502 evas_object_size_hint_weight_set(hbx_2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 503 evas_object_size_hint_weight_set(hbx_2, EVAS_HINT_EXPAND, 0.0);
503 elm_box_horizontal_set(hbx_2, EINA_TRUE); 504 elm_box_horizontal_set(hbx_2, EINA_TRUE);
504 elm_box_pack_end(bx, hbx_2); 505 elm_box_pack_end(bx, hbx_2);
505 evas_object_show(hbx_2); 506 evas_object_show(hbx_2);
@@ -544,7 +545,7 @@ elm_main(int argc,
544 evas_object_show(ck); 545 evas_object_show(ck);
545 546
546 hbx_3 = elm_box_add(win); 547 hbx_3 = elm_box_add(win);
547 evas_object_size_hint_weight_set(hbx_3, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 548 evas_object_size_hint_weight_set(hbx_3, EVAS_HINT_EXPAND, 0.0);
548 elm_box_horizontal_set(hbx_3, EINA_TRUE); 549 elm_box_horizontal_set(hbx_3, EINA_TRUE);
549 elm_box_pack_end(bx, hbx_3); 550 elm_box_pack_end(bx, hbx_3);
550 evas_object_show(hbx_3); 551 evas_object_show(hbx_3);