[pygtk] Wrapping plain structs

BJörn Lindqvist bjourne at gmail.com
Wed Sep 19 07:36:03 WST 2007


How do you wrap naked typedef structs? I tried with define-boxed, like this:

(define-boxed MyStruct
  (in-module "mod")
  (c-name "BlaHa")
  (fields
    ...
  )
)

But codegen.py seem to require a "gtype-id" field which requires the
struct to be registered using glib's registering system. But what if
my struct is not registered?

-- 
mvh Björn


More information about the pygtk mailing list