Add a theme parameter to the SVG/image generating functions

This is needed for image generation to include display themes.
Fixes #82
This commit is contained in:
2014-09-21 23:00:45 +02:00
parent 4fd2215360
commit 8a4eb378e9
4 changed files with 56 additions and 22 deletions

View File

@@ -498,6 +498,7 @@ ag_window_redraw_chart(AgWindow *window)
priv->chart,
&length,
FALSE,
NULL,
&err
);
@@ -1034,7 +1035,7 @@ ag_window_export_image(AgWindow *window, GError **err)
if (can_save) {
g_clear_error(&local_err);
save_func(priv->chart, file, &local_err);
save_func(priv->chart, file, priv->theme, &local_err);
if (local_err) {
ag_app_message_dialog(