[webkit-dev] adding gtk/gobject DOM bindings to webkit - code review and advice needed

Luke Kenneth Casson Leighton lkcl at lkcl.net
Sat Aug 23 15:42:35 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=16401

update: generator-script is a complete mess (not because it's perl!)
yet i'm making progress.  i have no idea what i'm doing but that doesn't
matter :)

thanks for the pointers to documentation/tutorials it helped confirm
some of the things needed.


on the TODO list:

* add properties
* add in SVGDocument (from the js bindings, this looks really hairy)
* add "custom" functions (i've commented out all custom functions for now)
* make the gobject G_DEFINE_TYPE macro derive from the "parent class".

regarding this last one: i spotted just now that i'm always deriving
from G_OBJECT so that will change tomorrow.

i'm _really_ not sure how the _init functions get called, but having
a quick peek at gtypes.h i think it's taken care of and i needn't fuss...

latest attachment compiles and links.  to actually test the whole thing
i need to also add the bindings to pywebkitgtk _that's_ going to be fun.
any pointers on that greatly appreciated: can you auto-generate
webkit.defs?

l.



More information about the webkit-dev mailing list