Simple case:
obj=GetFileObject,
GA_ID, SMOV,
GA_RelVerify, TRUE,
GETFILE_FullFile, smov,
GETFILE_TitleText, "Select a media file",
GETFILE_Pattern, sfpt,
GETFILE_DoPatterns, TRUE,
End,
case SMOV:
if(gfRequestFile(obj,mainwin)) {
get(obj,GETFILE_Pattern,(long*)&s);
printf("edited pattern=%s\n",s);
}
The thing I argue about is the fact that even if the user changes the file pattern in the pattern gadget in the ASL requester the GetFile gadget does not update its GETFILE_Pattern even if it supports GetAttr.