summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 13:30:33 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 15:24:37 +0900
commitd28510a37bcf993466644d0f0a4d94c9fe949a29 (patch)
tree650e9530b3961acbe70aa0aac784b7c18c348813
parent948d20ab542b14b455aa25eaa4732a88d03bee70 (diff)
test: Fix EO API usage (direction)
-rw-r--r--src/bin/elementary/test_gfx_filters.c3
-rw-r--r--src/bin/elementary/test_ui_grid.c14
2 files changed, 8 insertions, 9 deletions
diff --git a/src/bin/elementary/test_gfx_filters.c b/src/bin/elementary/test_gfx_filters.c
index bc54e113f7..a3b4d2e7c0 100644
--- a/src/bin/elementary/test_gfx_filters.c
+++ b/src/bin/elementary/test_gfx_filters.c
@@ -431,11 +431,10 @@ test_gfx_filters(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve
431 elm_colorselector_palette_color_add(o, colors[k].r, colors[k].g, colors[k].b, colors[k].a); 431 elm_colorselector_palette_color_add(o, colors[k].r, colors[k].g, colors[k].b, colors[k].a);
432 } 432 }
433 433
434 /* FIXME: No panes in EO APIs. */
435 o = split = efl_add(EFL_UI_PANES_CLASS, win, 434 o = split = efl_add(EFL_UI_PANES_CLASS, win,
436 efl_gfx_size_hint_weight_set(efl_added, 1.0, 1.0), 435 efl_gfx_size_hint_weight_set(efl_added, 1.0, 1.0),
437 efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0), 436 efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0),
438 efl_orientation_set(efl_added, EFL_ORIENT_HORIZONTAL)); 437 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL));
439 efl_pack(box, split); 438 efl_pack(box, split);
440 439
441 { 440 {
diff --git a/src/bin/elementary/test_ui_grid.c b/src/bin/elementary/test_ui_grid.c
index 1a84b40aae..0cd6837fb5 100644
--- a/src/bin/elementary/test_ui_grid.c
+++ b/src/bin/elementary/test_ui_grid.c
@@ -205,7 +205,7 @@ test_ui_grid(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
205 205
206 /* weights radio group */ 206 /* weights radio group */
207 bx = efl_add(EFL_UI_BOX_CLASS, win, 207 bx = efl_add(EFL_UI_BOX_CLASS, win,
208 efl_orientation_set(efl_added, EFL_ORIENT_DOWN)); 208 efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
209 efl_gfx_size_hint_align_set(bx, 0, -1); 209 efl_gfx_size_hint_align_set(bx, 0, -1);
210 efl_pack(hbox, bx); 210 efl_pack(hbox, bx);
211 211
@@ -267,7 +267,7 @@ test_ui_grid(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
267 267
268 /* min size setter */ 268 /* min size setter */
269 bx = efl_add(EFL_UI_BOX_CLASS, win, 269 bx = efl_add(EFL_UI_BOX_CLASS, win,
270 efl_orientation_set(efl_added, EFL_ORIENT_DOWN)); 270 efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
271 efl_gfx_size_hint_align_set(bx, 0.5, -1); 271 efl_gfx_size_hint_align_set(bx, 0.5, -1);
272 efl_gfx_size_hint_weight_set(bx, 0, 1); 272 efl_gfx_size_hint_weight_set(bx, 0, 1);
273 efl_pack(hbox, bx); 273 efl_pack(hbox, bx);
@@ -293,7 +293,7 @@ test_ui_grid(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
293 293
294 /* inner box padding */ 294 /* inner box padding */
295 bx = efl_add(EFL_UI_BOX_CLASS, win, 295 bx = efl_add(EFL_UI_BOX_CLASS, win,
296 efl_orientation_set(efl_added, EFL_ORIENT_DOWN)); 296 efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
297 efl_gfx_size_hint_align_set(bx, 0, -1); 297 efl_gfx_size_hint_align_set(bx, 0, -1);
298 efl_gfx_size_hint_weight_set(bx, 0, 1); 298 efl_gfx_size_hint_weight_set(bx, 0, 1);
299 efl_pack(hbox, bx); 299 efl_pack(hbox, bx);
@@ -319,7 +319,7 @@ test_ui_grid(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
319 319
320 /* outer margin */ 320 /* outer margin */
321 bx = efl_add(EFL_UI_BOX_CLASS, win, 321 bx = efl_add(EFL_UI_BOX_CLASS, win,
322 efl_orientation_set(efl_added, EFL_ORIENT_DOWN)); 322 efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
323 efl_gfx_size_hint_align_set(bx, 0, -1); 323 efl_gfx_size_hint_align_set(bx, 0, -1);
324 efl_gfx_size_hint_weight_set(bx, 0, 1); 324 efl_gfx_size_hint_weight_set(bx, 0, 1);
325 efl_pack(hbox, bx); 325 efl_pack(hbox, bx);
@@ -345,7 +345,7 @@ test_ui_grid(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
345 345
346 /* button margins */ 346 /* button margins */
347 bx = efl_add(EFL_UI_BOX_CLASS, win, 347 bx = efl_add(EFL_UI_BOX_CLASS, win,
348 efl_orientation_set(efl_added, EFL_ORIENT_DOWN)); 348 efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
349 efl_gfx_size_hint_align_set(bx, 0, -1); 349 efl_gfx_size_hint_align_set(bx, 0, -1);
350 efl_gfx_size_hint_weight_set(bx, 1, 1); 350 efl_gfx_size_hint_weight_set(bx, 1, 1);
351 efl_pack(hbox, bx); 351 efl_pack(hbox, bx);
@@ -371,7 +371,7 @@ test_ui_grid(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
371 371
372 /* ro info */ 372 /* ro info */
373 bx = efl_add(EFL_UI_BOX_CLASS, win, 373 bx = efl_add(EFL_UI_BOX_CLASS, win,
374 efl_orientation_set(efl_added, EFL_ORIENT_DOWN)); 374 efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
375 efl_gfx_size_hint_align_set(bx, 0, -1); 375 efl_gfx_size_hint_align_set(bx, 0, -1);
376 efl_gfx_size_hint_weight_set(bx, 1, 1); 376 efl_gfx_size_hint_weight_set(bx, 1, 1);
377 efl_pack(hbox, bx); 377 efl_pack(hbox, bx);
@@ -551,7 +551,7 @@ test_ui_grid_linear(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
551 551
552 /* ro info */ 552 /* ro info */
553 bx = efl_add(EFL_UI_BOX_CLASS, win, 553 bx = efl_add(EFL_UI_BOX_CLASS, win,
554 efl_orientation_set(efl_added, EFL_ORIENT_DOWN)); 554 efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
555 efl_gfx_size_hint_align_set(bx, 0, -1); 555 efl_gfx_size_hint_align_set(bx, 0, -1);
556 efl_gfx_size_hint_weight_set(bx, 1, 1); 556 efl_gfx_size_hint_weight_set(bx, 1, 1);
557 efl_pack(hbox, bx); 557 efl_pack(hbox, bx);