
Callback 2:
int
save_callback( fc, path, stats )
File_chooser fc;
char * path;
struct stat * stats;
path is the full path of the file to be saved.
stats is a pointer to the file’s stat structure if the file exists, or
NULL if the file
does not exist.
If the file exists, it is up to the application to check the permissions from the stat structure
and act accordingly. The File Chooser package will confirm with the user before
overwriting an existing file prior to issuing the callback; this may be prevented with
FILE_CHOOSER_NO_CONFIRM. Thus, if this callback is issued, the user expects the file
to be written or overwritten. It is the responsibility of the client to alert the user of any
failures with the appropriate feedback.
FILE_CHOOSER_SAVE_TO_DIR
If set TRUE, the Save/As: typein becomes blank and inactive, while the Save button remains active. In
the default state (FALSE), the behavior is that the Save button is inactive whenever the Save/As:
typein becomes empty.
Argument: Bool
Default:
FALSE
Procs: create, get, set
Objects: File_chooser
See Also: Appendix D, Version 3.2 and the File Chooser, of XView Programming Manual.
FILE_CHOOSER_SHOW_DOT_FILES
Specifies whether or not the FILE_CHOOSER package should consider files beginning with the “.” pre-
fix.
Argument: Bool
Default:
FALSE
Procs: create, get, set
Objects: File_chooser
See Also: Appendix D, Version 3.2 and the File Chooser, of XView Programming Manual ...