[interfacekit] Re: patch for Globals.cpp: _init_interface_kit()

> > And BMenu, etc.
> > BTW, we'll need to add it as friend of BScrollBar as well, since our 
> > Scrollbars are client side, and they'll need to be initialized by that 
> function as well.
> Not necessary - our BScrollbars initialize themselves in the 
> constructor via get_scrollbar_info() and draw themselves appropriately. 
> Alternately, we could have a global scrollbar_info object to save time, 
> but, to be honest, I don't really see people needing to construct 
> BScrollBars in a rapid fashion.
> 

Well, since get_scrollbar_info() is a remote method, so it's not so fast, I 
don't see the need to call it repeatedly. For example, in case of Tracker, you 
would have at least 2 calls to get_scrollbar_info every time a window is 
created (very often, then), in case you call it in the constructor, against 
just one call at the tracker startup, if you call it in _init_interface_kit().


Other related posts: