# HG changeset patch # User Ka-Hing Cheung # Date 1185158021 0 # Node ID 2f0bda21712f9a8e8c9db16a6dff68b5ad5d02d8 # Parent c7a5cd17b045ec25a3a65a1eef6aca771e5b9a03 purple_request_action doesn't call any callbacks if the user closes the window instead of clicking on the buttons. The problem is that purple_request_action is not required to have a cancel action, so when the close button is clicked the UI has no idea which action should be called. The closest one would be the default action, but when the user clicks cancel, he probably expects to cancel even if that's not the default action. Workaround by telling the window manager we don't want to have a close button. Fixes #1947 diff -r c7a5cd17b045 -r 2f0bda21712f pidgin/gtkrequest.c --- a/pidgin/gtkrequest.c Sun Jul 22 00:58:25 2007 +0000 +++ b/pidgin/gtkrequest.c Mon Jul 23 02:33:41 2007 +0000 @@ -580,6 +580,7 @@ /* Create the dialog. */ data->dialog = dialog = gtk_dialog_new(); + gtk_window_set_deletable(GTK_WINDOW(data->dialog), FALSE); if (title != NULL) gtk_window_set_title(GTK_WINDOW(dialog), title);