Hi Carlos, [snip] >create a new replacement for w_current->window, but I don't see where >and how it is initialized. Where is it? Do you think there are more >variables which need to be created?
Not that this matters anymore, but there are two other alternatives: * Using s_toplevel_init and then manually patching up things that need to be initialized * Looking at gschem/noweb/x_preview.nw which basically creates a toplevel from scratch. -Ales