RE: How to destroy child widgets?



How do I destroy *all* the child widgets in a vbox or hbox?
Preferably without destroying the box itself.

Try this, i didnt test it, but i think it will work...
(or others, correct me)

g_list_for_each(GTK_BOX(yourbox)->children, (GFunc)gtk_object_destroy,
NULL);

ciao

Hugo





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