GNOME Bugzilla – Bug 580219
delete_event on a dialog returns Gtk::RESPONSE_DELETE_EVENT
Last modified: 2010-04-03 14:07:16 UTC
Documentation Section: Gtk::Dialog Class Reference "If a dialog receives a delete event, the "response" signal will be emitted with a response id of Gtk::RESPONSE_NONE." Correct version: "If a dialog receives a delete event, the "response" signal will be emitted with a response id of Gtk::RESPONSE_DELETE_EVENT." Other information:
Hmm, seems to be fixed in master: "During gtk_dialog_run(), the default behavior of #GtkWidget::delete-event is disabled; if the dialog receives ::delete_event, it will not be destroyed as windows usually are, and gtk_dialog_run() will return #GTK_RESPONSE_DELETE_EVENT. Also, during gtk_dialog_run() the dialog will be modal. You can force gtk_dialog_run() to return at any time by calling gtk_dialog_response() to emit the ::response signal. Destroying the dialog during gtk_dialog_run() is a very bad idea, because your post-run code won't know whether the dialog was destroyed or not." Can you confirm this?
Closing as FIXED as per last comment. Frederico, please reopen if this is still an issue, or set to VERIFIED if it is indeed fixed. Thanks in advance!