Re: Some problems with the current plugin system in gnucash GUI

2005-11-17 Thread Didier Vidal
Le lun 14/11/2005 à 03:33, David Hampton a écrit : > On Sat, 2005-11-12 at 12:49 -0500, Josh Sled wrote: > > > The rule here is that we should create an account-tree page when a > > main-window is created which doesn't otherwise have an account-tree > > page. You want to hook in [:)] at a point a

Re: Some problems with the current plugin system in gnucash GUI

2005-11-14 Thread Didier Vidal
Le lun 14/11/2005 à 03:33, David Hampton a écrit : > On Sat, 2005-11-12 at 12:49 -0500, Josh Sled wrote: > > > The rule here is that we should create an account-tree page when a > > main-window is created which doesn't otherwise have an account-tree > > page. You want to hook in [:)] at a point

Re: Some problems with the current plugin system in gnucash GUI

2005-11-13 Thread David Hampton
On Sat, 2005-11-12 at 12:49 -0500, Josh Sled wrote: > The rule here is that we should create an account-tree page when a > main-window is created which doesn't otherwise have an account-tree > page. You want to hook in [:)] at a point after the UI is created, but > you don't want to create an acc

Re: Some problems with the current plugin system in gnucash GUI

2005-11-12 Thread Josh Sled
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

Re: Some problems with the current plugin system in gnucash GUI

2005-11-12 Thread Didier Vidal
> 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 ?

Re: Some problems with the current plugin system in gnucash GUI

2005-11-12 Thread Josh Sled
On Sat, 2005-11-12 at 13:54 +0100, Didier Vidal wrote: > However, I have a few problems with this architecture: >- The GUI actions (in this case, open the account hierarchy druid, > open a new account tree page) are managed by a class in the engine > module. That's odd to me. engine should be

Some problems with the current plugin system in gnucash GUI

2005-11-12 Thread Didier Vidal
Hello, When I wrote the "Open the account page after creating a new file" patch (https://lists.gnucash.org/pipermail/gnucash-patches/2005-November/016979.html), I used the same mechanism than the one that is used to launch the account hierarchy druid (hooks in the engine). It looked to me to be