Hi all!

I'm trying to wrap GDA and I've a problem with h2defs.py.

It could be a simple one but I can't solve it.

-------------------------------------

typedef struct _GdaCommand GdaCommand;

struct _GdaCommand {
        gchar             *text;
        GdaCommandType     type;
        GdaCommandOptions  options;
}
-------------------------------------

h2defs.py gda-command.h   

It seems to miss something, because although enumerations are processed
the struct itself is plainly ignored, so the boxed type is not 
created after.

If I add manually in the .defs

------------
(define-boxed Command
  (in-module "Gda")
  (c-name "GdaCommand")
  (gtype-id "GDA_TYPE_COMMAND")
  (copy-func "gda_command_copy")
  (release-func "gda_command_free")
)
----------------

then the PyGdaCommand_Type and stuff are generated rightly 
by codegen.

What could be wrong ?

I'm using actually FC6 with pygtk2-codegen-2.10.4-1.fc6

I'm really stuck. 

Thanks all!






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

Reply via email to