/* -------------------------------------------------------------------- */ void confirmPNG(Widget w, XtPointer client, XtPointer call) { FileCancel((Widget)NULL, (XtPointer)NULL, (XtPointer)NULL); ExtractFileName(((XmFileSelectionBoxCallbackStruct *)call)->value, &outFile); if (strstr(outFile, ".png") == NULL) strcat(outFile, ".png"); if (access(outFile, F_OK) == 0) { sprintf(buffer, "Overwrite file %s", outFile); WarnUser(buffer, savePNG, NULL); } else savePNG((Widget)NULL, (XtPointer)NULL, (XtPointer)NULL); }
int CMraProto::FileDeny(MCONTACT hContact, HANDLE hTransfer, const TCHAR*) { return FileCancel(hContact, hTransfer); }