[pygtk] h2defs.py + GDA problem
Carlos Savoretti
csavoretti at clubsanjorge.com.ar
Sat May 26 03:34:56 WST 2007
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!
More information about the pygtk
mailing list