summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_win_inline.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 15:54:03 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 15:57:49 +0900
commit87aa053e58f82473ff10b877ce61e0df38d7cb4a (patch)
tree1bdb299edd1789931d55c6eb20692cd2517523b6 /src/bin/elementary/test_win_inline.c
parente8b7f5f255ce37fbc47dbe38bd379bf1e824e0d2 (diff)
elm_test: Remove calls to fill+expand (EO)
Wherever the EO API is used, i.e. efl_add() is used to create evas objects, we can skip the calls to set fill/expand. This new set of defaults indeed saves ~60 loc in the tests (out of 115 objects created). I found only 3 cases where the align had to be set manually (to the old default of 0.5). See 1a1b8bc45155dcb96129013c4177d742a06434e6 And e8b7f5f255ce37fbc47dbe38bd379bf1e824e0d2 Ref T5301
Diffstat (limited to 'src/bin/elementary/test_win_inline.c')
-rw-r--r--src/bin/elementary/test_win_inline.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bin/elementary/test_win_inline.c b/src/bin/elementary/test_win_inline.c
index c290c87..5209b20 100644
--- a/src/bin/elementary/test_win_inline.c
+++ b/src/bin/elementary/test_win_inline.c
@@ -227,7 +227,6 @@ test_win_inline(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *even
227 227
228 box = efl_add(EFL_UI_BOX_CLASS, win, 228 box = efl_add(EFL_UI_BOX_CLASS, win,
229 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL)); 229 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL));
230 evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
231 elm_win_resize_object_add(win, box); 230 elm_win_resize_object_add(win, box);
232 231
233 win2 = elm_win_add(win, "inlined", ELM_WIN_INLINED_IMAGE); 232 win2 = elm_win_add(win, "inlined", ELM_WIN_INLINED_IMAGE);