Re: [gtk-list] Re: Ataching data to a widget



On Thu, Jun 03, 1999 at 01:17:48PM +0000, José Miguel R. Barrientos wrote:
> Sven LUTHER wrote:
> > 
> > Hello, ...
> > 
> > Is it possible to attach some information to a widget ? Some pointer to data or
> > anything like that ?
> > 
> > Friendly,
> > 
> > Svven LUTHER
> > 
> > --
> > To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 
> 	gtk_object_set_user_data(GTK_OBJECT(MyWidget), (gpointer)&MyDataStruct);
> 
> 	pointertoMyDataStruct = gtk_object_get_user_data(GTK_OBJECT(MyWidget));

When a widget with attached data is destroyed, what happens to attached data ?
Does it get freed normally, or does it just get leaked ?

what about the data associated to a clist row ?

Is it possible to make some custom freeing in a destroy event associated to the
widget ? what about the clist case ?

Friendly,

Sven LUTHER



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