diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-02-05 16:28:01 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-05 16:41:41 -0200 |
commit | 658f6cbbb19ec9c2a2f8a0a0d703d8107ce9d722 (patch) | |
tree | 6b95a6ee086d0f8a83b445ece3318a2f08cb5826 /tests | |
parent | c9e3bb47ee0eb929c6b4c43f9e3cd432ed449fc9 (diff) |
Shiboken::setParent also accepts list of children.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/samplebinding/typesystem_sample.xml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml index 32e29742d..75a8e47fe 100644 --- a/tests/samplebinding/typesystem_sample.xml +++ b/tests/samplebinding/typesystem_sample.xml @@ -125,12 +125,9 @@ </modify-argument> </modify-function> <modify-function signature="children()const"> - <inject-code class="target" position="end"> - Py_ssize_t max = PyList_GET_SIZE(%PYARG_0); - for (int i = 0; i < max; ++i) { - Shiboken::setParent(%PYSELF, PyList_GET_ITEM(%PYARG_0, i)); - } - </inject-code> + <modify-argument index="return"> + <parent index="this" action="add"/> + </modify-argument> </modify-function> </object-type> <object-type name="ObjectTypeLayout"> |