> > Also, if we are running as a shell, we ought to be able to start the
> > ui, do stuff, and then exit the ui dropping back into the shell.
> 
> This would be excellent.

Ok, I have this working. The last patch I submitted to
the list includes this ability, which works best under
gnome. I haven't tested it extensively, but I have
exited and restarted the ui in the shell multiple
times. The data is retained between invocations.
It's cool.
 
> > Now, when both are running, the following will happen during a shutdown,
> > if we aren't running as a shell:
> > 
> > 1. gnc_shutdown will be invoked, invoking gnc:shutdown
> > 2. gnc:ui_shutdown will be invoked.
> 
> Overall, I think you covered everything quite nicely.  However,
> originally, I wanted to make it possible to call gnc:shutdown or
> gnc_shutdown interchangably.  If that's still a good idea, do you
> support it?

Yes, and I believe my solution does just that. If guile
is running, then gnc_shutdown calls gnc:shutdown and
does nothing else. gnc:shutdown handles everything,
including shutting down the ui if it is running.
If guile isn't running, then gnc_shutdown just exits.

So, if guile is running, they both have the following semantics:

1. If the ui is running, shutdown the ui, but not guile.
2. If the ui is not running, shutdown the program.

dave

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]

Reply via email to