when clearing or destroying a clist



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]