On 13 Feb, John-Mark Bell wrote in message
    <1266061578.20513.113.ca...@duiker>:

> On Sat, 2010-02-13 at 11:37 +0000, Steve Fryatt wrote:
>
> > I still can't spot where the original code was doing this, mind --
> > although I think I'll probably let that pass as "one of those things"
> > for now.
> 
> Almost the last thing ro_gui_tree_open does. That function is registered
> with wimp_event by ro_gui_hotlist_initialise, and will be called for every
> Wimp_OpenWindow event on the hotlist window.

Found it.

I think that probably also answers the decision I was putting off as to
whether the RO treeview stuff needs to know about the toolbar: it seems it
does, otherwise this code will end up spread around several other modules.

> wimp_event is NetSurf's EventLib equivalent: you register event handlers
> with it, and they get called when the relevant event occurs.

I just didn't think of looking at OpenWindow events, I'm afraid.

I suspect that NetSurf may be using the Nested Wimp's toolbar handling
abilities slightly differently from the way that I've always used them in my
own code, so another read through the relevant sections of themes and
treeview might be a good idea.

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/

Reply via email to