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 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 > > _______________________________________________ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
