Re: gtk_object_remove_all_data ?
- From: Havoc Pennington <hp redhat com>
- To: Vladimir Tsichevski <wowa jet msk su>
- Cc: hvv hippo ru, Florent Devin lifl fr, gtk-list gnome org
- Subject: Re: gtk_object_remove_all_data ?
- Date: 19 Sep 2000 11:10:52 -0400
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]