summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_layout.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-05-24 20:40:18 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-05-26 19:55:50 +0900
commit99924852abf4e92db329d2f9f89a43a3143eea0d (patch)
treef5d949063b037dcd130de9f5f96547ef31cf2c88 /src/tests/elementary/elm_test_layout.c
parent56a7a66e97e231e8b9a7c3917055993fe36b4c30 (diff)
Efl: Remove part name in Efl.Container (use Efl.Part)
This touches Edje and also Elementary where part names are used. This commit blew up in size since now all content part APIs (get, set, unset) require to use Efl.Part instead. This is a big refactoring commit, but no logic should have been changed. Fingers crossed.
Diffstat (limited to '')
-rw-r--r--src/tests/elementary/elm_test_layout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/elementary/elm_test_layout.c b/src/tests/elementary/elm_test_layout.c
index 6a9e4a3bb2..7c0ba94e33 100644
--- a/src/tests/elementary/elm_test_layout.c
+++ b/src/tests/elementary/elm_test_layout.c
@@ -38,17 +38,17 @@ START_TEST(elm_layout_swallows)
38 evas_object_show(ly); 38 evas_object_show(ly);
39 39
40 bt = eo_add(ELM_BUTTON_CLASS, ly); 40 bt = eo_add(ELM_BUTTON_CLASS, ly);
41 fail_if(!efl_content_set(ly, "element1", bt)); 41 fail_if(!efl_content_set(efl_part(ly, "element1"), bt));
42 ck_assert_ptr_eq(eo_parent_get(bt), ly); 42 ck_assert_ptr_eq(eo_parent_get(bt), ly);
43 43
44 bt = efl_content_unset(ly, "element1"); 44 bt = efl_content_unset(efl_part(ly, "element1"));
45 ck_assert_ptr_eq(eo_parent_get(bt), evas_common_evas_get(bt)); 45 ck_assert_ptr_eq(eo_parent_get(bt), evas_common_evas_get(bt));
46 46
47 fail_if(!efl_content_set(ly, "element1", bt)); 47 fail_if(!efl_content_set(efl_part(ly, "element1"), bt));
48 ck_assert_ptr_eq(eo_parent_get(bt), ly); 48 ck_assert_ptr_eq(eo_parent_get(bt), ly);
49 49
50 bt2 = eo_add(ELM_BUTTON_CLASS, ly); 50 bt2 = eo_add(ELM_BUTTON_CLASS, ly);
51 fail_if(!efl_content_set(ly, "element1", bt2)); 51 fail_if(!efl_content_set(efl_part(ly, "element1"), bt2));
52 ck_assert_ptr_eq(eo_parent_get(bt2), ly); 52 ck_assert_ptr_eq(eo_parent_get(bt2), ly);
53 /* bt is deleted at this point. */ 53 /* bt is deleted at this point. */
54 ck_assert_ptr_eq(eo_parent_get(bt), evas_common_evas_get(bt)); 54 ck_assert_ptr_eq(eo_parent_get(bt), evas_common_evas_get(bt));