Hello, 

I'm playing around with the code generator to create bindings for some
GObject derived classes. 
Since I have some functions like

I have a class called MiaVector3d and amongst others a method 

gfloat mia_vector3d_dot(const MiaVector3d *a, const MiaVector3d *b);

In the original codegen complains about the second parameter with some
"Cannot create method Vector3d.dot: 'const-MiaVector3d*' ArgType not
found" (or so) error. 

Looking at the BoxedArg in argtypes.py, I was able to change the
ObjectArg and the type registration in a way to create the wrapper, and
it is working without (apparent) problems.

My question: Is there a deeper reason, why const object arguments are
not supported in the original codegen implementation? 

If not I would file a bug report and attach the patch there. 

Thanks in advance, 

Gert 









_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to