G2 problems & patches

Phil Longstaff plongstaff at newearth.org
Sun Jul 17 11:38:36 EDT 2005

A couple of problems I've noticed with G2:

1) The equity and income statements have a typo in the scheme code.  I've 
attached a patch (diffs-reports).  My scheme isn't too good, but I don't see 
how this could have ever worked.

2) If you make a change to the file and then close G2, it first asks if you 
really want to close.  Say yes.  The main window disappears and then you are 
told the file has changed and you are asked if you want to save.  If you say 
yes, G2 crashes.  The problem is that the main window has been destroyed but 
gnc-window.c still has a reference to the window in progress_bar_hack_window.
I've attached a patch to set the progress-bar window to NULL if the main 
window is being destroyed (window-diffs).  I'm a little uneasy about this 
because I don't know the GTK windowing architecture at all, but it seems to 
do the trick.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: diffs-reports
Type: text/x-diff
Size: 602 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050717/3d9a9f6c/diffs-reports.bin
-------------- next part --------------
? window-diffs
Index: gnc-main-window.c
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/Attic/gnc-main-window.c,v
retrieving revision
diff -r1.1.2.8 gnc-main-window.c
> 	gnc_window_set_progressbar_window( NULL );
Index: gnc-window.c
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/Attic/gnc-window.c,v
retrieving revision
diff -r1.1.2.2 gnc-window.c
<     DEBUG( "no [progress_bar_hack]window" );

More information about the gnucash-devel mailing list