nav_button bug and hook problems

2008-04-13 Thread bobjack
nav_buttons had a bug such that the marks dialog box was not being populated when a leo file was opened. I fixed this on the trunk. While I was investigating this bug I put a trace on the update method and discovered that when I closed the file and reopened it, it was not only receiving hooks tha

Re: nav_button bug and hook problems

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 5:07 AM, bobjack <[EMAIL PROTECTED]> wrote: > > nav_buttons had a bug such that the marks dialog box was not being > populated when a leo file was opened. I fixed this on the trunk. > > While I was investigating this bug I put a trace on the update method > and discovered t

Re: nav_button bug and hook problems

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 4:57 PM, Edward K. Ream <[EMAIL PROTECTED]> wrote: I never heard of pyDispatcher. Time to google... > It looks like pyDispatcher is highly rated. It's definitely worth looking at. It could have even more important uses within Leo: there are many places where a listener/

Re: nav_button bug and hook problems

2008-04-14 Thread bobjack
> > A long term solution may be to use pyDispatcher and translate doHook > > and registerHook calls to this.  It should be possible to do this > > transparently and so without effecting the current api or code. Only > > code using the hook tables directly would be effected. > > Interesting.  Are