Re: more GDK->GTK mapping



On 28 Feb 2001, Owen Taylor wrote:

> 
> Tim Janik <timj gtk org> writes:
> 
> > On 27 Feb 2001, Havoc Pennington wrote:
> > 
> > > Hi,
> > 
> > > +                 g_type_name (G_TYPE_FROM_INSTANCE (widget)));
> > 
> > you should use GTK_OBJECT_TYPE() or at least G_OBJECT_TYPE(), i.e. use
> > the macros introduced for the fundamental type you're operating on.
> 
> Why?

because gtype.h just provides the helper API to implement fundamental types.

>                                         Owen
> 

---
ciaoTJ





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