aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_gengrid.c
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
commit0f4dc0b222ffc28829a898e207aeb107ec3de302 (patch)
treea3e69c4c8c5dfa7a5d0a86ff4afea74c3e0b817c /legacy/elementary/src/bin/test_gengrid.c
parent[toolbar] Adjust icon size along with text etc. (diff)
downloadefl-0f4dc0b222ffc28829a898e207aeb107ec3de302.tar.gz
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.
Diffstat (limited to 'legacy/elementary/src/bin/test_gengrid.c')
-rw-r--r--legacy/elementary/src/bin/test_gengrid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/legacy/elementary/src/bin/test_gengrid.c b/legacy/elementary/src/bin/test_gengrid.c
index 18ab97c277..4a106d53c4 100644
--- a/legacy/elementary/src/bin/test_gengrid.c
+++ b/legacy/elementary/src/bin/test_gengrid.c
@@ -1798,7 +1798,10 @@ test_gengrid_focus(void *data EINA_UNUSED,
evas_object_show(fr);
bx_opt = elm_box_add(fr);
- elm_box_horizontal_set(bx_opt, EINA_TRUE);
+ elm_box_layout_set(bx_opt, evas_object_box_layout_flow_horizontal, NULL, NULL);
+ evas_object_size_hint_weight_set(bx_opt, EVAS_HINT_EXPAND, 0.0);
+ evas_object_size_hint_align_set(bx_opt, EVAS_HINT_FILL, 0.0);
+ elm_box_align_set(bx_opt, 0.0, 0.5);
elm_object_content_set(fr, bx_opt);
evas_object_show(bx_opt);