Tomas Berndtsson wrote:
>
> I use a GtkLayout widget in a window, and fill it with various other
> widgets. Now, at some point, I need to be able to remove all widgets
> in this GtkLayout, but without removing the layout itself. I don't
> have all the pointers to the widgets saved, and I would rather not, if
> there is another way. I couldn't find anything in the documentation
> that would do this.
>
> The GtkLayout struct contains a GList *children, but messing with that
> seems like a crude way of doing such a thing. Besides, I don't know
> what the list really contains.
Probably the data field in the GList is a child widget. Try:
for (list = layout; list != NULL; list = list->next)
gtk_widget_destroy(GTK_WIDGET(list->data));
--
Pedro Medeiros
--
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null