r18005 - gnucash/branches/webkit/src/html - When loading an html string to the webkit html engine, check if there's an <object> tag.

Phil Longstaff plongstaff at cvs.gnucash.org
Sat Mar 28 18:20:08 EDT 2009


Author: plongstaff
Date: 2009-03-28 18:20:08 -0400 (Sat, 28 Mar 2009)
New Revision: 18005
Trac: http://svn.gnucash.org/trac/changeset/18005

Modified:
   gnucash/branches/webkit/src/html/gnc-html-graph-gog-webkit.c
   gnucash/branches/webkit/src/html/gnc-html-graph-gog.c
   gnucash/branches/webkit/src/html/gnc-html-webkit.c
Log:
When loading an html string to the webkit html engine, check if there's an <object> tag.
If so, remove the string between the <object> and </object> markers, and pass that to the
object handler.  The webkit object handlers pick the info out of the various parameters,
use gog to create the graph pixbuf, save that to a file in /tmp, and then replace the
original <object>...</object> with <img src="/tmp/barchart">.  This can then be fed to
webkit and it will load the graph.





More information about the gnucash-patches mailing list