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

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

Reply via email to