summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-02-01 13:25:01 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-02-01 13:32:31 +0900
commit5a1460782b8e04d5ccd36cb2ffdfdc9e0b89f926 (patch)
tree750d918739caf6935867b36c9afbb0a4e9c924f7
parentaabc31074e5980d34ef42f68b5eed674545a6791 (diff)
test: reflow check boxes in genlist and gengrid focus tests
Without this, the items never get unrealized, except on window close. This allows better testing of those widgets.
-rw-r--r--src/bin/test_gengrid.c5
-rw-r--r--src/bin/test_genlist.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/test_gengrid.c b/src/bin/test_gengrid.c
index 18ab97c27..4a106d53c 100644
--- a/src/bin/test_gengrid.c
+++ b/src/bin/test_gengrid.c
@@ -1798,7 +1798,10 @@ test_gengrid_focus(void *data EINA_UNUSED,
1798 evas_object_show(fr); 1798 evas_object_show(fr);
1799 1799
1800 bx_opt = elm_box_add(fr); 1800 bx_opt = elm_box_add(fr);
1801 elm_box_horizontal_set(bx_opt, EINA_TRUE); 1801 elm_box_layout_set(bx_opt, evas_object_box_layout_flow_horizontal, NULL, NULL);
1802 evas_object_size_hint_weight_set(bx_opt, EVAS_HINT_EXPAND, 0.0);
1803 evas_object_size_hint_align_set(bx_opt, EVAS_HINT_FILL, 0.0);
1804 elm_box_align_set(bx_opt, 0.0, 0.5);
1802 elm_object_content_set(fr, bx_opt); 1805 elm_object_content_set(fr, bx_opt);
1803 evas_object_show(bx_opt); 1806 evas_object_show(bx_opt);
1804 1807
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index 2813c4271..2d7e684d0 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -4628,7 +4628,10 @@ _test_genlist_focus_option_panel_create(Evas_Object *win, Evas_Object *bx,
4628 evas_object_show(fr); 4628 evas_object_show(fr);
4629 4629
4630 bx_opt = elm_box_add(fr); 4630 bx_opt = elm_box_add(fr);
4631 elm_box_horizontal_set(bx_opt, EINA_TRUE); 4631 elm_box_layout_set(bx_opt, evas_object_box_layout_flow_horizontal, NULL, NULL);
4632 evas_object_size_hint_weight_set(bx_opt, EVAS_HINT_EXPAND, 0.0);
4633 evas_object_size_hint_align_set(bx_opt, EVAS_HINT_FILL, 0.0);
4634 elm_box_align_set(bx_opt, 0.0, 0.5);
4632 elm_object_content_set(fr, bx_opt); 4635 elm_object_content_set(fr, bx_opt);
4633 evas_object_show(bx_opt); 4636 evas_object_show(bx_opt);
4634 4637