Re: gtk_object_remove_all_data ?



Havoc Pennington writes:
 > 
 > Vladimir Tsichevski <wowa jet msk su> writes: 
 > > After a one more dig into the sources I found the right call is
 > > 
 > >   g_datalist_clear(&object->object_data);
 > > 
 > 
 > Note that doing this is not allowed with any GTK object (and probably
 > not with canvas items either). object_data is a private field.
Note that it is not allowed but works.
 > 
 > If you do this to a GtkWidget, than GTK will break, GTK uses object
 > data on widgets. You can only remove data that you explicitly set.

Doing this GTK does not break (at least for the moment) but all signal
connected to this object are down. 

 > 
 > (For your problem, maybe you could just store a GSList* as object
 > data, instead of storing multiple object data?)
 > 
 > Havoc

That is what I want to avoid, but if it is the only way...
-- Florent





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