...yaq... (yet another question) :-)
- From: Georg Greve <greve fusebox hanse de>
- Subject: ...yaq... (yet another question) :-)
- Date: Thu, 9 Jul 1998 13:22:23 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hi !
I am also having another problem. I tagged a special data array to my
list items and of course the memory should be freed again upon
destruction of the list items.
So I attached my function to free the memory to the items by
gtk_signal_connect (GTK_OBJECT (list_item), "destroy",
GTK_SIGNAL_FUNC (destroy_filter_entry), filter);
Where "filter" is the pointer to the data to be freed. The interesting
question is whether I need to destroy the list item itself
somehow. And if I have to: how do I do it ? It seems that right now
just having:
void destroy_filter_entry(GtkWidget *widget, gpointer *data){
Filter* filter = (Filter*) data;
delete filter;
}
crashes my program...
By the way: Is the destruction event called for every GtkListItem upon
destruction of the GtkList ? One would think so, but by now I am
desperate enough to consider the weirdest things (voodoo ? :-) ).
Later,
Georg
- --
Georg C. F. Greve <greve@fusebox.hanse.de>
http://porter.desy.de/~greve/ - ICQ#10016966
"People who fight may lose. People who do not
fight have already lost." -- Bertolt Brecht
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Processed
iQCVAwUBNaTED1ZXgZXDxqJtAQFe/AQAjSxQTmfYvg5pz+crhvyi5ihplnmJHCpB
4MJyC15Jbu480Bc0RIeGIztz+Ny1LLf7kFVCtXSCpzlL4ZeEBeCq7Ysv28ra+JHr
7nH9Wi/wsuCRufkQfp6c+wf+O7AktkS6mjHnSoWOG7Mzmuniwy2vSUE9hSE5274M
tJ1JmLALevY=
=jK14
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]