diff -r 3a7f11975fe0 -r c9a202d78b6e pidgin/gtkrequest.c --- a/pidgin/gtkrequest.c Thu Jan 17 06:17:02 2008 +0000 +++ b/pidgin/gtkrequest.c Thu Jan 17 07:21:04 2008 +0000 @@ -663,7 +663,11 @@ gtk_widget_grab_focus(img); gtk_widget_grab_default(img); } else - gtk_dialog_set_default_response(GTK_DIALOG(dialog), default_action); + /* + * Need to invert the default_action number because the + * buttons are added to the dialog in reverse order. + */ + gtk_dialog_set_default_response(GTK_DIALOG(dialog), action_count - 1 - default_action); /* Show everything. */ pidgin_auto_parent_window(dialog);