xaccSchedXactionFree
Robert Graham Merkel
rgmerk@mira.net
Wed, 25 Jul 2001 17:04:01 +1000
OK, then. I've seen the FIXME with respect to cleaning up the
template account, and I'm attempting to do so.
Now, as you don't have a pointer to the template account in
the gncp_SchedXaction struct, the only way I can see to get
access to the account is by looking it up by name from the
AccountGroup it belongs to.
Now, the only way to get that AccountGroup (you don't store
that either) is from the GNCBook that the whole world belongs
to. However, that's not directly available either, AFAICT!
Unless I'm missing something, you need to either
a) add another argument to xaccSchedXactionFree (pass in the
appropriate GNCBook)
or
b) add another member to the gncp_SchedXaction struct to store
the information needed about the template account to be able
to delete it.
Am I missing something here?
--
------------------------------------------------------------
Robert Merkel rgmerk@mira.net
Go You Big Red Fire Engine
-- Unknown Audience Member at Adam Hills standup gig
------------------------------------------------------------