[Gnucash-changes] Chris' patch to get GoG showing on FC3.
Derek Atkins
warlord at cvs.gnucash.org
Sat Apr 30 17:53:01 EDT 2005
Log Message:
-----------
Chris' patch to get GoG showing on FC3.
* src/gnome-utils/gnc-html-graph-gog.c: chris' patch
to enable showing the graph to workaround a bug in
gtkhtml-3.3.2 where the widget height is set to -1.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash:
ChangeLog
gnucash/src/gnome-utils:
gnc-html-graph-gog.c
Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1487.2.199
retrieving revision 1.1487.2.200
diff -LChangeLog -LChangeLog -u -r1.1487.2.199 -r1.1487.2.200
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,9 @@
+2005-04-30 Derek Atkins <derek at ihtfp.com>
+
+ * src/gnome-utils/gnc-html-graph-gog.c: chris' patch
+ to enable showing the graph to workaround a bug in
+ gtkhtml-3.3.2 where the widget height is set to -1.
+
2005-04-28 David Hampton <hampton at employees.org>
* lots-o-files: Migrate most hidden preferences over to gconf.
Index: gnc-html-graph-gog.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/Attic/gnc-html-graph-gog.c,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -Lsrc/gnome-utils/gnc-html-graph-gog.c -Lsrc/gnome-utils/gnc-html-graph-gog.c -u -r1.1.4.2 -r1.1.4.3
--- src/gnome-utils/gnc-html-graph-gog.c
+++ src/gnome-utils/gnc-html-graph-gog.c
@@ -179,6 +179,10 @@
double *data = NULL;
char **labels = NULL, **colors = NULL;
+ /* HACK ALERT! Compensate for bug in gtkhtml-3.3.2 */
+ if (eb->height < 1)
+ eb->height = eb->width; /* only squares here :( */
+
// First, parse data from the text-ized params.
{
char *datasizeStr, *dataStr, *labelsStr, *colorStr;
@@ -270,6 +274,10 @@
char *barType = "normal";
int barOverlap = 0 /*percent*/; // seperate bars; no overlap.
+ /* HACK ALERT! Compensate for bug in gtkhtml-3.3.2 */
+ if (eb->height < 1)
+ eb->height = eb->width; /* only squares here :( */
+
// First, parse data from the text-ized params.
{
char *datarowsStr, *datacolsStr, *dataStr, *colLabelsStr, *rowLabelsStr, *colColorsStr, *stackedStr;
@@ -381,6 +389,10 @@
int datasize;
double *xData, *yData;
+ /* HACK ALERT! Compensate for bug in gtkhtml-3.3.2 */
+ if (eb->height < 1)
+ eb->height = eb->width; /* only squares here :( */
+
{
char *datasizeStr, *xDataStr, *yDataStr;
More information about the gnucash-changes
mailing list