Some problems with the current plugin system in gnucash GUI

Josh Sled jsled at asynchronous.org
Sat Nov 12 15:40:04 EST 2005


On Sat, 2005-11-12 at 19:00 +0100, Didier Vidal wrote:
> > Hmm.  With this patch, the hook is registered at account-tree
> > plugin-page class-initialization time, and the hook applies to all new
> > books, regardless of origin.  That doesn't seem quite right on either
> > count...
> > 
> 
> What's the difference with the following, in src/gnome/druid-hierarchy.c
> ?
> void
> gnc_ui_hierarchy_druid_initialize (void)
> {
>   gnc_hook_add_dangler(HOOK_NEW_BOOK,
> 		       (GFunc)gnc_ui_hierarchy_druid_hook, NULL);
> }

It's done externally to the initialization of a type, which makes sense
as there is no "hierarchy druid" type to initialize.

But there's effectively no difference, true.  I don't see why we should
indirect through the hook in this case, either.

...jsled
-- 
http://asynchronous.org/ - `a=jsled; b=asynchronous.org; echo ${a}@${b}`


More information about the gnucash-devel mailing list