# HG changeset patch # User Ka-Hing Cheung # Date 1185158021 0 # Node ID 41e0c131611fc65adf7851f094b05c3d0eaae2a5 # Parent dca57fda6b15529a1bcfe252207afda2e5853c86 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 dca57fda6b15 -r 41e0c131611f 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);