> 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); } Didier. _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel