changeset 18618:2f0bda21712f

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
author Ka-Hing Cheung <khc@hxbc.us>
date Mon, 23 Jul 2007 02:33:41 +0000
parents c7a5cd17b045
children 0cb46c94c47d
files pidgin/gtkrequest.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);