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

> I would guess that _fini_interface() is only called on termination of 
> the app, right? In that case, you probably wouldn't have to delete 
> anything.

Yeah, that's my guess too. But I tought that explicitly deleting what I 
allocated in init_interface_kit() was a bit cleaner.

> Although it probably wouldn't be a good idea to initialize 
> the width buffer just when someone links against libbe.so. Where is it 
> called in our sources?

As now, nowhere. I have a patch for BApplication, though, which calls 
_init_interface_kit() in the application's constructor (well, InitData(), in 
fact).

> BTW in my headers, _fini_interface() is friend of BTextView, and so 
> should be able to delete what it has to - why can't we just do that, 
> too?

Add _fini_interface_kit() as friend, you mean ? Yeah, we could do that too. 

> _fini_interface_kit() is exported from InterfaceDefs.h and friend of 
> BRadioButton as well in the Dano headers.

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.


Other related posts: