I would like to know if there is a way to edit the contents of the main window in the Gtk2 main loop. What i mean is that after I build the main window and display it (say it contains just a label) the user is then asked whether they want to add a table to the main window. The idea is that if the user says yes then the table is added to the main window and it is re displayed.