aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-12-09 16:02:16 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:56:20 -0300
commit6575ac8d39281c1694238fe5341311b27bf24924 (patch)
treef13cbc31d303377248d278ed2ffc586021031627
parent1af53541bf90b74c350d83507932fd694a5c0283 (diff)
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 28b48e6f8..5f4c57657 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