1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
if( table!=NULL )
{
GList* children = gtk_container_get_children( GTK_CONTAINER( table ) );
guint num_child = g_list_length( children );
cout << "NUM CHILDREN="<<num_child<<endl;
int i=0;
while( i<num_child )
{
cout << "deleting child n:"<<i<<endl;
gtk_widget_destroy( GTK_WIDGET( children->data ) );
children = children->next;
++i;
}
gtk_widget_destroy( GTK_WIDGET( table ) );
}
|