Re: gtk_object_remove_all_data ?



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.

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.

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

Havoc




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