I'm sending a patch to Linas.  Here's what it does:

(Linas: I was a little confused by what happened in HelpWindow.c.  I
set it back to using the new FindFile that respects --doc-path.  Is
that OK?)

It cleans up the configure process some.  We no longer have the
install-opt option.  Now if you want an opt style install (everything
in a direct subdir under --prefix), you specify it as a configure
option (--with-opt-style-install).  I think I had started this process
in my last patch, but it wasn't quite right.  As an added bonus, we
don't need to rebuild during the install step because the paths won't
change unless you re-configure which means that you need to "make
clean" anyway.

I've rearranged configure.in to make sure the base values of our
variables are defined before they're needed, and I've fixed up
src/motif/Makefile.in to do a better job of getting it's X arguments
(libs, etc) from configure.  Other front ends (gnome, qt) should look
at the motif dir as an example of how they should change their
Makefile.in and/or other files.

There is now only *one* main(), and it's in src/guile/gnucash.c.  In
addition motif main.c and main.h are gone.  They have been replaced
with top-level.h and top-level.c.  The idea is that each UI will
provide the functions in this file, but guile will handle the overall
initialization process.

This allowed me to implement another cool (and useful) feature.  Now
anytime gnucash is invoked as gnucash-shell, it drops into a guile
shell with all the swig stuff loaded.  This can be quite useful for
debugging (see below for another use).  The new build process creates
a symlink from gnucash-shell to gnucash to make this work.  I don't
have all the bugs worked out though.  Right now gnucash-shell is
directly linked to gnucash.motif.  This means that you don't get any
of the normal startup arguments.  We can improve this later...

I've also added support for plotutils.  If it's detected at configure
time, it's automatically used, if not, it shouldn't hurt anything.
You can use the new gnucash-shell feature to see a small pie-chart
demo (it doesn't have anything to do with any accounts, it's just to
see that my test code's working).  To check it out (not that it's
anything to write home about yet) just do this:

  gnucash-shell -l src/scm/graph.scm
  guile> (pie-window)

"q" in the pie chart will close that window, and (quit) will get you
out of gnucash-shell (Yes, I know.  Quitting should close the window).

-- 
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

Reply via email to