r18004 - gnucash/branches/webkit/src/html - Separate out graph GdkPixbuf creation code from knowledge of the GtkHTMLEmbedded class.

Phil Longstaff plongstaff at cvs.gnucash.org
Sat Mar 28 15:12:53 EDT 2009


Author: plongstaff
Date: 2009-03-28 15:12:52 -0400 (Sat, 28 Mar 2009)
New Revision: 18004
Trac: http://svn.gnucash.org/trac/changeset/18004

Added:
   gnucash/branches/webkit/src/html/gnc-html-graph-gog.c
   gnucash/branches/webkit/src/html/gnc-html-graph-gog.h
Modified:
   gnucash/branches/webkit/src/html/Makefile.am
   gnucash/branches/webkit/src/html/gnc-html-graph-gog-gtkhtml.c
Log:
Separate out graph GdkPixbuf creation code from knowledge of the GtkHTMLEmbedded class.
This creates a separate info struct and graph creation routine for each chart type (pie,
bar, line and scatter plot).  The old graphing code now pulls the parameters from the
GtkHTMLEmbedded obj, fills the info structure, calls the lower-level routine to create the
graph GdkPixbuf, and then embeds it into the GtkHTMLEmbedded frame.  This split allows
other uses for graphing and other ways graphs can be displayed since the dependency on
GdkPixbuf is broken.




More information about the gnucash-patches mailing list