Wild guess; use strace to look for a signal at the time the window is closed, and add code to replace the handler for the signal. For instance, to handle Ctrl+C gracefully in Python that uses GTK, some of my code does this; GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, callback) -- James Cameron http://quozl.netrek.org/ _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list