After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169204 - codegen doesn't like const object args for no appearent reason
codegen doesn't like const object args for no appearent reason
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: codegen
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-04 16:15 UTC by wollny
Modified: 2008-07-16 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A patch to let codegen handle const object args (1.20 KB, patch)
2005-03-04 16:17 UTC, wollny
none Details | Review

Description wollny 2005-03-04 16:15:49 UTC
Distribution/Version: Debian/sarge

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.
Comment 1 wollny 2005-03-04 16:17:16 UTC
Created attachment 38251 [details] [review]
A patch to let codegen handle const object args
Comment 2 Gustavo Carneiro 2006-04-01 21:00:04 UTC
Thanks, applied your patch with some slight changes.