2003-05-30 Christian Stimming <stimming@tuhh.de>

* lib/guppi-legend.patch: Include patch for Guppi that fixes
	reversed legend problem.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8470 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2003-05-30 19:30:34 +00:00
parent 68d591db56
commit 694375f3cf
5 changed files with 122 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-05-30 Christian Stimming <stimming@tuhh.de>
* lib/guppi-legend.patch: Include patch for Guppi that fixes
reversed legend problem.
2003-05-29 Derek Atkins <derek@ihtfp.com>
* src/gnome/glade/register.glade: add sort entries for Action and Notes

7
README
View File

@ -176,7 +176,12 @@ The following packages are required to be installed to run GnuCash:
some advanced functionality. This can be found at
ftp://ftp.gnome.org/pub/GNOME/stable/sources/Guppi. You may need
to configure it with `--prefix=/usr' in order for gnucash's
`configure' to find the guppi library.
`configure' to find the guppi library. Note: Version 0.40.3
(released January 2002) has a problem with reversed legends in
stacked barcharts. Since Guppi development has halted since that
version, we can only provide a source code patch for Guppi 0.40.3
that fixes this problem. You find that patch in
lib/guppi-legend.patch.
libgal: any recent version should work. This is a GNOME related
library used by several different programs. You can find it at

View File

@ -1,4 +1,4 @@
SUBDIRS = libc guile-www srfi
EXTRA_DIST = README
EXTRA_DIST = README guppi-legend.patch

View File

@ -7,3 +7,12 @@ Finance::Quote
--------------
Available from http://finance-quote.sourceforge.net.
------------------------------------------------
guppi-legend.patch: Apply this patch to the Guppi 0.40.3 package (and
compile and install the patched version) in order
to fix the reversed legend problem with stacked
barcharts.
------------------------------------------------

101
lib/guppi-legend.patch Normal file
View File

@ -0,0 +1,101 @@
--- Guppi-0.40.3/libguppitank/guppi-object-barchart.c 2003-05-30 21:21:16.000000000 +0200
+++ Guppi-0.40.4/libguppitank/guppi-object-barchart.c 2003-05-30 21:21:26.000000000 +0200
@@ -1,5 +1,5 @@
/* This is -*- C -*- */
-/* $Id$ */
+/* $Id$ */
/*
* guppi-object-barchart.c
@@ -410,6 +410,7 @@
GuppiElementState *left_axis_state = NULL;
GuppiElementState *frame_state = NULL;
GuppiColorPalette *color_palette = NULL;
+ GuppiColorPalette *color_palette_legend = NULL;
GuppiDataTable *data_table;
GnomeFont *font;
@@ -446,11 +447,13 @@
/* FIXME: check for construction of legends. */
if (obar->legend_view && obar->col_labels) {
- add_col_labels (obar, data_table, obar->data_cols, obar->col_labels, FALSE);
+ add_col_labels (obar, data_table, obar->data_cols, obar->col_labels,
+ obar->legend_reversed);
}
if (obar->col_colors) {
color_palette = build_bar_colors (obar, FALSE);
+ color_palette_legend = build_bar_colors (obar, obar->legend_reversed);
}
guppi_element_state_set (barchart_state,
@@ -497,7 +500,7 @@
guppi_element_state_set (legend_state,
"labels", data_table,
- "swatch_colors", color_palette,
+ "swatch_colors", color_palette_legend,
"label_font", font,
NULL);
}
@@ -505,6 +508,8 @@
/* clean up */
+ guppi_unref (color_palette);
+ guppi_unref (color_palette_legend);
guppi_unref (barchart_state);
guppi_unref (legend_state);
guppi_unref (bottom_axis_state);
@@ -525,6 +530,7 @@
GuppiDataTable *data_table;
GuppiColorPalette *color_palette = NULL;
+ GuppiColorPalette *color_palette_legend = NULL;
GuppiElementState *barchart_state;
GuppiElementState *legend_state = NULL;
@@ -560,7 +566,8 @@
}
if (obar->col_labels) {
- add_col_labels (obar, data_table, obar->data_cols, obar->col_labels, FALSE);
+ add_col_labels (obar, data_table, obar->data_cols, obar->col_labels,
+ obar->legend_reversed);
}
@@ -568,6 +575,7 @@
if (obar->col_colors) {
color_palette = build_bar_colors (obar, FALSE);
+ color_palette_legend = build_bar_colors (obar, obar->legend_reversed);
}
barchart_state = guppi_element_state_new ("barchart",
@@ -620,7 +628,8 @@
legend_state = guppi_element_state_new ("legend",
"labels", data_table,
- "swatch_colors", color_palette,
+ "swatch_colors",
+ color_palette_legend,
"label_font", font,
NULL);
@@ -669,6 +678,8 @@
/* Clean up after ourselves... */
guppi_unref (data_table);
+ guppi_unref (color_palette);
+ guppi_unref (color_palette_legend);
guppi_unref (barchart_state);
guppi_unref (bottom_axis_state);
@@ -864,4 +875,4 @@
-/* $Id$ */
+/* $Id$ */