Webkit options in MacOSX

Phil Longstaff plongstaff at rogers.com
Mon Apr 20 14:07:00 EDT 2009

The epiphany glue code which uses webkit does something similar - grabs the settings from gconf and passes them down to webkit.

I could apply your patch, and it would allow people to set report fonts as a temporary measure.  However, what I think we want eventually is:
1) Add report formatting preferences to global preferences
2) Add report formatting preferences to report options.  These would default to the global preferences but could be overridden for a specific report.
3) Allow preferences to be saved and restored by name?  This would be similar to the current stylesheets.
4) Embed the preferences as css in the report html.  This ensures that the report can be exported and imported to another browser and still appear the same. 


From: Mike Alexander <mta at umich.edu>
To: Phil Longstaff <plongstaff at rogers.com>; Gnucash list <gnucash-devel at lists.gnucash.org>
Sent: Monday, April 20, 2009 11:47:27 AM
Subject: Re: Webkit options in MacOSX

--On April 19, 2009 8:29:15 AM -0400 Phil Longstaff <plongstaff at rogers.com> wrote:

> There is a WEBKIT_WEB_SETTINGS gobject which, according to 1.0.1
> code, allows  you to set lots of default values.  We would need to
> connect that to gconf.   Available settings:
> struct _WebKitWebSettingsPrivate {
>     gchar* default_encoding;
>     gchar* cursive_font_family;
>     gchar* default_font_family;
>     gchar* fantasy_font_family;
>     gchar* monospace_font_family;
>     gchar* sans_serif_font_family;
>     gchar* serif_font_family;
>     guint default_font_size;
>     guint default_monospace_font_size;
>     guint minimum_font_size;
>     guint minimum_logical_font_size;
>     gboolean auto_load_images;
>     gboolean auto_shrink_images;
>     gboolean print_backgrounds;
>     gboolean enable_scripts;
>     gboolean enable_plugins;
>     gboolean resizable_text_areas;
>     gchar* user_stylesheet_uri;
>     gfloat zoom_step;
> };

I noticed this too.  I've created a patch attached to <http://bugzilla.gnome.org/show_bug.cgi?id=579621> which syncs some of these settings with gconf.  I didn't do anything about adding them to the preferences dialog, but you can set them using gconftool or the equivalent and GnuCash will honor them.


More information about the gnucash-devel mailing list