[pygtk] pygda build broken: const-GObject
Gustavo J. A. M. Carneiro
gjc at inescporto.pt
Sun Apr 23 19:20:16 WST 2006
On Sáb, 2006-04-22 at 22:07 +0200, Murray Cumming wrote:
> The pygda build is currently broken (in gnome-python-extras when libgda
> is installed):
> "
> gda.c: In function '_wrap_gda_value_get_gobject':
> gda.c:1689: error: syntax error before '-' token
> "
>
> That's because the code generator is generating this:
> "
> static PyObject *
> _wrap_gda_value_get_gobject(PyObject *self)
> {
> const-GObject *ret;
> "
>
> That's probably because the .defs file says
> "
> (define-method get_gobject
> (of-object "GdaValue")
> (c-name "gda_value_get_gobject")
> (return-type "const-GObject*")
> )
> "
>
> But I think that's correct, and the hyphen is used elsewhere. If I take
> the hyphen away then I get this warning instead:
> "
> Could not write method GdaValue.get_gobject: No ArgType for 'const
> GObject*'
> "
>
> Has something changed?
New code was added to pygtk codegen to handle const-SomeObject*, but
we forgot to handle the case when it is used as return type. Fixed in
HEAD now, and gda API has at least one more wrapped method ;-)
--
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>
The universe is always one step beyond logic
More information about the pygtk
mailing list