efl: Remove @owned tag from pack/content APIs
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 08:11:15 +0000 (17:11 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 08:29:03 +0000 (17:29 +0900)
commit76ab8e3f54a138c524c0ea18be9f124f89853ceb
tree24f244d34327917e797f2673f446bc56fbd03add
parentce8460406813f2205afe0cf7dde6cd412e1140be
efl: Remove @owned tag from pack/content APIs

Refer to the previous commits for more context.

When an evas object is given to a container, be it with a variant of
efl_pack() or efl_content_set(), its "ownership" is given to the new
parent container. But ownership here means that the new container may
delete the child when it sees fit (i.e. when the container itself dies,
for instance). This does not mean that a reference was passed from the
calling context to the container. The actual EO owner of the child is
always the canvas or another canvas object, even if it the object is
unpacked.

Note: This means that invalid calls to efl_pack or efl_content_set will
not automatically delete the child object. This is the same as legacy,
and results in floating objects. Just check the return value! :)

Hopefully this is correct for bindings.
src/lib/efl/interfaces/efl_pack.eo
src/lib/efl/interfaces/efl_pack_grid.eo
src/lib/efl/interfaces/efl_pack_linear.eo
src/lib/elementary/efl_ui_win.eo
src/lib/elementary/elm_gengrid_item.eo
src/lib/elementary/elm_genlist_item.eo
src/lib/evas/canvas/efl_canvas_group.eo