summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_naviframe.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-07 15:16:29 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:19 -0700
commit0fe3b7962d2558b17fe5bb6f0f2b00737bd63dee (patch)
treea50df2ff22d964afc7c59f45031035897c550d28 /src/lib/elementary/elc_naviframe.c
parent0239099d01921edb6a9dec7c7e1b0e3562ca11b8 (diff)
elementary: due to lifecycle difference between legacy object and unified object, we need to track their lifecycle more explicitely.
It is my understanding that some items view are created with efl_add directly and manipulate VIEW directly with Eo new API. This clash with the inconsistent behavior that evas_object_del expect. To work around this, we track object life by explictely relying on efl_wref_add while holding the pointer to the object.
Diffstat (limited to 'src/lib/elementary/elc_naviframe.c')
-rw-r--r--src/lib/elementary/elc_naviframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_naviframe.c b/src/lib/elementary/elc_naviframe.c
index 5e586c5..98e683c 100644
--- a/src/lib/elementary/elc_naviframe.c
+++ b/src/lib/elementary/elc_naviframe.c
@@ -1280,7 +1280,7 @@ _item_new(Evas_Object *obj,
1280 ELM_NAVIFRAME_ITEM_DATA_GET(eo_item, it); 1280 ELM_NAVIFRAME_ITEM_DATA_GET(eo_item, it);
1281 1281
1282 //item base layout 1282 //item base layout
1283 VIEW(it) = elm_layout_add(obj); 1283 VIEW_SET(it, elm_layout_add(obj));
1284 evas_object_smart_member_add(VIEW(it), obj); 1284 evas_object_smart_member_add(VIEW(it), obj);
1285 1285
1286 if (!elm_widget_sub_object_add(obj, VIEW(it))) 1286 if (!elm_widget_sub_object_add(obj, VIEW(it)))