-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Jan 19, 2007 at 06:52:03PM +0100, Enrico Tröger wrote: > Hi all, > > when I write big dialogs, I create it only once, keep the pointer to > the dialog and show it everytime I need it. In the response callback I > just use gtk_widget_hide to let the dialog disappear. This works as > expected and all is fine. > > On my Debian Etch(same for Sarge) I don't need to handle the > delete-event signal of the dialog. If it is triggered the dialog just > disappears and until now I thought it is just hidden. But according to > the API documenation the dialog should be actually destroyed [...]
I didn't understand exactly. Do you mean that you *don't* handle the delete event and still keep a pointer to the widget? And then the widget is hidden for you and you can re-show it later? If that's the case, well -- you got what you asked for: undefined behaviour ;-) If you don't handle the delete event, the widget gets marked for destroy. Later it gets the destroy event (at this point the widget is no longer quite functional: think of it as a last cleanup thing). Then it goes away. Nobody guarantees you that all those things happen immediately. But then maybe I didn't understand your post correctly. Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFsanjBcgs9XrR2kYRApzCAJwPUl4wZS2o+2cRiowpcSw0oj/KigCfRDbE CGiBIRoxAI0Wwp+JLdDidBs= =+wuu -----END PGP SIGNATURE----- _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list