summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_part.eo
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-03 16:34:17 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:18 -0700
commit8a513a522e90253ce7ec85e92c7bc58dfb22a2bc (patch)
treeabeafb5e5bce67ed685e4e82f0d756de46ef60ec /src/lib/efl/interfaces/efl_part.eo
parentc28eb28728c280d3fd19ef46790fce6f9465d4f5 (diff)
efl: major rewrite of efl_part.
The interface efl_part_get should not be directly called from C, but the efl_part wrapper should. It rely on efl_noref to properly destroy the object. Binding can control the lifecycle of the reference the way they want by either calling the wrapper or efl_part_get directly. It also means that the ugly ___efl_auto_unref_set doesn't need to be exposed outside of EFL anymore. Differential Revision: https://phab.enlightenment.org/D6098
Diffstat (limited to '')
-rw-r--r--src/lib/efl/interfaces/efl_part.eo9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/efl/interfaces/efl_part.eo b/src/lib/efl/interfaces/efl_part.eo
index 124dad121e..1f37e7e4ab 100644
--- a/src/lib/efl/interfaces/efl_part.eo
+++ b/src/lib/efl/interfaces/efl_part.eo
@@ -10,7 +10,10 @@ interface Efl.Part
10 theme. 10 theme.
11 11
12 Part proxy objects have a special lifetime that 12 Part proxy objects have a special lifetime that
13 is limited to one and only one function call. 13 is limited to one and only one function call. This
14 behavior is implemented in efl_part() which call
15 Efl.Part.part_get(). Calling Efl.Part.part_get() directly
16 should be avoided.
14 17
15 In other words, the caller does not hold a reference 18 In other words, the caller does not hold a reference
16 to this proxy object. It may be possible, in languages 19 to this proxy object. It may be possible, in languages
@@ -32,10 +35,8 @@ interface Efl.Part
32 unref(part) 35 unref(part)
33 ]] 36 ]]
34 methods { 37 methods {
35 part @const { 38 part_get @protected @const {
36 [[Get a proxy object referring to a part of an object. 39 [[Get a proxy object referring to a part of an object.
37
38 The returned object is valid for only a single function call.
39 ]] 40 ]]
40 params { 41 params {
41 name: string; [[The part name.]] 42 name: string; [[The part name.]]