summaryrefslogtreecommitdiffstats
path: root/PySide/QtGui
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-12-09 20:01:53 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-12-09 20:01:53 -0300
commit35a92c1dbf47be5270c4ce61591b51351950efc7 (patch)
tree4c5df89a74879faa1528dad52bdd7ab60b4b1379 /PySide/QtGui
parent651cadc2c485ab3f9704974f2bef6737412a0071 (diff)
downloadpyside-35a92c1dbf47be5270c4ce61591b51351950efc7.tar.gz
pyside-35a92c1dbf47be5270c4ce61591b51351950efc7.tar.xz
pyside-35a92c1dbf47be5270c4ce61591b51351950efc7.zip
Fixes custom code for QtCore's HWND on win32.
Diffstat (limited to 'PySide/QtGui')
-rw-r--r--PySide/QtGui/typesystem_gui_win.xml9
1 files changed, 1 insertions, 8 deletions
diff --git a/PySide/QtGui/typesystem_gui_win.xml b/PySide/QtGui/typesystem_gui_win.xml
index 416c5e5..93d422a 100644
--- a/PySide/QtGui/typesystem_gui_win.xml
+++ b/PySide/QtGui/typesystem_gui_win.xml
@@ -43,14 +43,7 @@
</conversion-rule>
</primitive-type>
<inject-code class="native" position="beginning">
- static bool checkPyCapsuleOrPyCObject(PyObject* pyObj)
- {
- #ifdef IS_PY3K
- return PyCapsule_CheckExact(pyObj);
- #else
- return PyCObject_Check(pyObj);
- #endif
- }
+ <insert-template name="checkPyCapsuleOrPyCObject_func"/>
</inject-code>
<enum-type name="QPixmap::HBitmapFormat" />
</typesystem>