Simple question:How to destroy a child window?

2001-10-21 Thread Pengjun Pei
Hi,I made a program containing a main window and may pop up a new window. But I always have problems in destroying the windows. Seems gtk_main_quit() not a good idea Is gtk_quit_add_destroy(gtk_main_level(),GTK_OBJECT(widget)); return(TRUE) the correct thing to do? I tried but it s

Re: Simple question:How to destroy a child window?

2001-10-22 Thread Flavio Alberto Lopes Soares
Use gtk_widget_destroy(widget); this will destroy only the widget that you want, gtk_main_quit() exit of your application. Good lucky Sucess Flavio Alberto Pengjun Pei wrote: > > Hi,I made a program containing a main window and may pop up a new window. > But I always have problems in destroy