Re: [gtk-list] Re: what's the opposite of the destroy signal?



On 16 Dec 1999, Havoc Pennington wrote:

> GDK and X resources (things that require contacting the X server)
> should be created in the realize method (or later, as long as you
> check that the widget is realized) and destroyed in unrealize. Other
> resources should be created in your _init() function, in your _new()
> function, or simply whenever it's convenient, and destroyed in
> destroy() or whenever you no longer need them.

no resources should ever be allocated in the _new() implementations, every widget
that comes with a _new() functions that does more than creating the widget and
optionally setting some (construct) arguments in fundamentally broken.

> 
> Havoc
> 

---
ciaoTJ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]