From b2dc2274e803fd0bf18dc7c17996a8753cb0058d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Wed, 9 Aug 2017 21:02:47 +0900 Subject: [PATCH] elm_test: Fix some test cases to use legacy Legacy test cases should keep using the legacy API, not the EO API. Ref T5870 --- src/bin/elementary/test_index.c | 4 ++-- src/bin/elementary/test_panes.c | 2 +- src/bin/elementary/test_separator.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/elementary/test_index.c b/src/bin/elementary/test_index.c index 141c808..085f849 100644 --- a/src/bin/elementary/test_index.c +++ b/src/bin/elementary/test_index.c @@ -82,7 +82,7 @@ set_api_state(api_data *api) break; case INDEX_HORIZONTAL: - efl_orientation_set(d->id, EFL_ORIENT_HORIZONTAL); + elm_index_horizontal_set(d->id, EINA_TRUE); break; case INDEX_INDICATOR_DISABLED: @@ -564,7 +564,7 @@ test_index_horizontal(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, evas_object_show(list); api->dt.id = id = elm_index_add(win); - efl_orientation_set(id, EFL_ORIENT_HORIZONTAL); + elm_index_horizontal_set(id, EINA_TRUE); evas_object_size_hint_weight_set(id, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(id, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_table_pack(tb, id, 0, 0, 1, 1); diff --git a/src/bin/elementary/test_panes.c b/src/bin/elementary/test_panes.c index 6b60516..27d9535 100644 --- a/src/bin/elementary/test_panes.c +++ b/src/bin/elementary/test_panes.c @@ -76,7 +76,7 @@ test_panes(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf // add panes panes_h = elm_panes_add(win); - efl_orientation_set(panes_h, EFL_ORIENT_HORIZONTAL); + elm_panes_horizontal_set(panes_h, EINA_TRUE); elm_panes_content_right_min_size_set(panes_h, 100); elm_panes_content_right_size_set(panes_h, 0.3); evas_object_show(panes_h); diff --git a/src/bin/elementary/test_separator.c b/src/bin/elementary/test_separator.c index 40aff19..1d6f516 100644 --- a/src/bin/elementary/test_separator.c +++ b/src/bin/elementary/test_separator.c @@ -28,7 +28,7 @@ test_separator(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event evas_object_show(bt); sp = elm_separator_add(win); - efl_orientation_set(sp, EFL_ORIENT_HORIZONTAL); + elm_separator_horizontal_set(sp, EINA_TRUE); elm_box_pack_end(bx, sp); evas_object_show(sp); @@ -54,7 +54,7 @@ test_separator(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event evas_object_show(bt); sp = elm_separator_add(win); - efl_orientation_set(sp, EFL_ORIENT_HORIZONTAL); + elm_separator_horizontal_set(sp, EINA_TRUE); elm_box_pack_end(bx, sp); evas_object_show(sp); -- 2.7.4