diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2018-05-03 16:34:17 -0700 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2018-05-24 16:02:18 -0700 |
commit | 8a513a522e90253ce7ec85e92c7bc58dfb22a2bc (patch) | |
tree | abeafb5e5bce67ed685e4e82f0d756de46ef60ec /src/lib/efl/cxx/efl_part_impl.hh | |
parent | c28eb28728c280d3fd19ef46790fce6f9465d4f5 (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/cxx/efl_part_impl.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/efl/cxx/efl_part_impl.hh b/src/lib/efl/cxx/efl_part_impl.hh index b97dda1457..6a0b9ead60 100644 --- a/src/lib/efl/cxx/efl_part_impl.hh +++ b/src/lib/efl/cxx/efl_part_impl.hh | |||
@@ -7,8 +7,7 @@ | |||
7 | #define EOLIAN_CXX_EFL_PART_IMPLEMENTATION \ | 7 | #define EOLIAN_CXX_EFL_PART_IMPLEMENTATION \ |
8 | inline ::efl::Object Part::part(::efl::eina::string_view const& name) const \ | 8 | inline ::efl::Object Part::part(::efl::eina::string_view const& name) const \ |
9 | { \ | 9 | { \ |
10 | ::Eo *handle = ::efl_part(_eo_ptr(), name.c_str()); \ | 10 | ::Eo *handle = ::efl_part_get(_eo_ptr(), name.c_str()); \ |
11 | ::___efl_auto_unref_set(handle, false); \ | ||
12 | return ::efl::Object{handle}; \ | 11 | return ::efl::Object{handle}; \ |
13 | } | 12 | } |
14 | 13 | ||