[pygtk] pygda build broken: const-GObject

Murray Cumming murrayc at murrayc.com
Sun Apr 23 04:07:11 WST 2006


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?

-- 
Murray Cumming
murrayc at murrayc.com
www.murrayc.com
www.openismus.com



More information about the pygtk mailing list