Re: [gtk-list] Re: Datalists in GtkTypes



Quoting Havoc Pennington <hp@redhat.com>:

> 
> Dominic Ludlam <dom@recoil.org> writes:
> > 
> > I would like to be able to associate arbitrary data
> > with GtkTypes for the equivalent of static data members
> > in C++ classes.  There is a nice system for adding data
> > to GtkObjects, but not to the underlying types. Is there
> > any exisiting way of doing this?
> > 
> 
> You can just use g_dataset_* to associate data with any pointer
> whatsoever (get the class struct with gtk_type_class()).
> 

Great, thats exactly what I wanted. Thanks.

Dom.



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