On Sat, 2010-02-13 at 11:37 +0000, Steve Fryatt wrote:
> On 12 Feb, John-Mark Bell wrote in message
>     <1266006263.20513.108.ca...@duiker>:
> 
> > I suspect that what you need is to call
> > 
> > ro_gui_theme_process_toolbar(history_window.toolbar, -1);
> > 
> > immediately after opening the window.
> 
> This seems to work; thanks.
> 
> 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.

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


J.


Reply via email to