Re: [gtk-list] Re: Datalists in GtkTypes
- From: Dominic Ludlam <dom recoil org>
- To: <gtk-list redhat com>
- Subject: Re: [gtk-list] Re: Datalists in GtkTypes
- Date: Wed, 03 May 2000 00:17:43 +0100
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]