[pygtk] pygtk-codegen - wrapping enums
Jacob Kroon
jacob.kroon at gmail.com
Fri Feb 24 17:36:15 WST 2006
Hi,
I'm using pygtk-codegen-2.0 to generate python bindings for a library
I've written in C.
The .defs-file contains, among other things :
...
(define-enum SignalType
(in-module "Flow")
(c-name "FlowSignalType")
(gtype-id "FLOW_TYPE_SIGNAL_TYPE")
(values
'("sinus" "FLOW_SIGNAL_SINUS")
)
)
...
Now when I modified the C sources, and added another enumeration value,
I forgot to update
the .defs-file - but the enumeration value was still added to the
module, and everything was fine.
Is the "(values)" section really necessary in the .defs-file? Or is it
that it _should_ be in the
.defs-file, but pygtk-codegen doesn't need it, although other language
wrappers might need it ?
//Jacob
More information about the pygtk
mailing list