aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-09 21:02:47 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-10 14:42:08 +0900
commitb2dc2274e803fd0bf18dc7c17996a8753cb0058d (patch)
treece4a9f11b9cf485fb6d12546d4f5db34d8376af1
parentefl: Introduce Efl.Ui.Direction interface (diff)
downloadefl-b2dc2274e803fd0bf18dc7c17996a8753cb0058d.tar.gz
elm_test: Fix some test cases to use legacy
Legacy test cases should keep using the legacy API, not the EO API. Ref https://phab.enlightenment.org/T5870
-rw-r--r--src/bin/elementary/test_index.c4
-rw-r--r--src/bin/elementary/test_panes.c2
-rw-r--r--src/bin/elementary/test_separator.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/elementary/test_index.c b/src/bin/elementary/test_index.c
index 141c808501..085f8493db 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 6b60516b3f..27d9535045 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 40aff1947c..1d6f516420 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);