[interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- From: "burton666@xxxxxxxxx" <burton666@xxxxxxxxx>
- To: "interfacekit" <interfacekit@xxxxxxxxxxxxx>
- Date: Thu, 18 Dec 2003 08:32:05 +0100
> 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.
- Follow-Ups:
- [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- From: DarkWyrm
- [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- From: Axel Dörfler
Other related posts:
- » [interfacekit] patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- » [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- From: DarkWyrm
- [interfacekit] Re: patch for Globals.cpp: _init_interface_kit()
- From: Axel Dörfler