summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-12-09 16:02:16 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-12-09 19:25:36 -0300
commitba94b0b21b8ea511511817aefa7b26cb96937f25 (patch)
treeb772f08f79b517aa26b9aedb1e36b16163782f24
parent00b4b81fbc3697d7763808433868e34ed50cdf20 (diff)
downloadpyside-ba94b0b21b8ea511511817aefa7b26cb96937f25.tar.gz
pyside-ba94b0b21b8ea511511817aefa7b26cb96937f25.tar.xz
pyside-ba94b0b21b8ea511511817aefa7b26cb96937f25.zip
Fixed converter for win32's WId type.
-rw-r--r--PySide/QtGui/typesystem_gui_win.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/PySide/QtGui/typesystem_gui_win.xml b/PySide/QtGui/typesystem_gui_win.xml
index 28b48e6..5f4c576 100644
--- a/PySide/QtGui/typesystem_gui_win.xml
+++ b/PySide/QtGui/typesystem_gui_win.xml
@@ -30,7 +30,10 @@
#endif
</native-to-target>
<target-to-native>
- <add-conversion type="checkPyCapsuleOrPyCObject">
+ <add-conversion type="PyNone">
+ %out = 0;
+ </add-conversion>
+ <add-conversion check="checkPyCapsuleOrPyCObject(%in)" type="PyObject">
#ifdef IS_PY3K
%out = (%OUTTYPE)PyCapsule_GetPointer(%in, 0);
#else