when clearing or destroying a clist
- From: franciszek holop <fred pentacom sk>
- To: gtk-app-devel-list gnome org
- Subject: when clearing or destroying a clist
- Date: Fri, 30 Jan 2004 14:46:07 +0100
hello list,
(i am not subscribed, please cc me...)
before destroying the clist widget (or it's parent) or
before clearig the clist, do i have to g_free() the stuff
allocated using gtk_clist_set_row_data() or is it automagic?
extern gint items; /* number of items in the clist */
gint i;
struct some_struct *clist_data;
for (i = 0; i < items; i++) {
(gpointer *)clist_data =
gtk_clist_get_row_data(GTK_CLIST(clist), i);
g_free((gpointer *)clist_data);
}
gtk_clist_clear(GTK_CLIST(clist));
-f
(gtk, glib 1.2.10)
--
every great journey begins with a single step.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]