Webkit status (updated)

Phil Longstaff plongstaff at rogers.com
Sat Mar 28 18:28:30 EDT 2009


It turned out to be simple to look through the html string for an <object> 
tag, then remove it and pass it to an object handler.  The object handlers 
used by gnc_html_webkit parse this string for the info put into the html 
string by html-barchart.scm/html-piechart.scm/html-linechart.scm/html-
scatter.scml and use that to pass to gog to create the graph pixbuf.  The 
pixbuf is then saved to /tmp as a png image, and the original <object> string 
is replaced by a new <img> string with a reference to the image.  Works like a 
charm.

So, at this point, with libwebkit-1.0-1 and libwebkit-dev installed (on 
kubuntu), I can replace use of gtkhtml by webkit.

What configuration policies do we want?  If webkit is available, use it and 
otherwise fall back to gtkhtml?  Require webkit and never use gtkhtml again?  
Once I have modified configure.in appropriately and done a bit of cleanup, it 
will be ready to move to trunk.

The same trick could also be used for gtkmozembed in case we want to embed 
gecko instead.  Support for gtkmozembed in gnucash is just preliminary but can 
be easily modeled after the webkit support.

Thoughts?

Phil


More information about the gnucash-devel mailing list