more library structure

Chris Shoemaker c.shoemaker at cox.net
Thu Jan 26 12:36:27 EST 2006


On Wed, Jan 25, 2006 at 09:08:33PM -0500, Derek Atkins wrote:
> >The plugins, pluginpages and pluginmanager all end up depending on
> >these.  Although, at the moment I can't remember the exact dependency
> >chain, so I'm going to start-over and try to take better notes.
> 
> I'd like to see the dependency tree here..
> 

The dependency turned out to be that gnc-main-window registers the
book-open/close hooks for restore/saving global state -- even state
like reports, (which, unfortunately, are not per-window or even
per-book, but global,) -- in its class-init function (seems like a
pretty strange place to me).

I found a better solution than pulling gnc-main-window into gnome/.
First, I'm going to register the open/close book hooks during gui
init, not class-init.  

Second, I'm going to distinguish between book-level persistent data
and window-level persistent data.  Currently, the only book-level
persistent data are guid and the reports.  Book-level persistence will
be handled from /gnome/ and window saving/restoration will stay in
gnome-utils.

-chris


More information about the gnucash-devel mailing list