Simple question:How to destroy a child window?



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 seems not working the way I expected.
Also what the difference between delete_event and destroy?
What are the situations to use them?
Thanks!


Pengjun




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]