jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=5a1460782b8e04d5ccd36cb2ffdfdc9e0b89f926

commit 5a1460782b8e04d5ccd36cb2ffdfdc9e0b89f926
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Mon Feb 1 13:25:01 2016 +0900

    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.
---
 src/bin/test_gengrid.c | 5 ++++-
 src/bin/test_genlist.c | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/bin/test_gengrid.c b/src/bin/test_gengrid.c
index 18ab97c..4a106d5 100644
--- a/src/bin/test_gengrid.c
+++ b/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);
 
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index 2813c42..2d7e684 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,
    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);
 

-- 


Reply via email to