aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-10-06 11:33:59 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:56:10 -0300
commit75843bf45a494c37168ff2ee5672490ca1dee9cf (patch)
treed8b76f0681ac0c98d763eb134a3edb22fa4296f1 /PySide
parent1e29ab65924166688e352eaaa099ad571a980c4f (diff)
Updated QtDeclarative modue to works with python 2.x and 3.x
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtDeclarative/pysideqmlregistertype.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/PySide/QtDeclarative/pysideqmlregistertype.cpp b/PySide/QtDeclarative/pysideqmlregistertype.cpp
index 34fd3ddfe..1fc802012 100644
--- a/PySide/QtDeclarative/pysideqmlregistertype.cpp
+++ b/PySide/QtDeclarative/pysideqmlregistertype.cpp
@@ -197,12 +197,11 @@ void propListTpFree(void* self)
PySideProperty* pySelf = reinterpret_cast<PySideProperty*>(self);
delete reinterpret_cast<DeclarativeListProperty*>(PySide::Property::userData(pySelf));
// calls base type constructor
- pySelf->ob_type->tp_base->tp_free(self);
+ Py_TYPE(pySelf)->tp_base->tp_free(self);
}
PyTypeObject PropertyListType = {
- PyObject_HEAD_INIT(0)
- 0, /*ob_size*/
+ PyVarObject_HEAD_INIT(0, 0)
"ListProperty", /*tp_name*/
sizeof(PySideProperty), /*tp_basicsize*/
0, /*tp_itemsize*/