
FILE_CHOOSER_COMPARE_FUNC
Function to compare two entires in the list of files. Setting the FILE_CHOOSER_FILTER_FUNC to
NULL does not guarantee any ordering to row entries.
Argument: int (*compare_func)()
Default: Case-insensitive ascending sorting order. Also provided are case-insensitive descending
and case sensitive ascending and descending.
Procs: create, get, set
Objects: File_chooser
Callback:
int
compare_func( row1, row2 )
File_chooser_row *row1;
File_chooser_row *row2;
where File_chooser_row is defined as:
typedef struct {
char * file;
struct stat * stats;
File_chooser_op matched;
char * xfrm;
} File_chooser_row;
file is a string representing the name of the file being sorted.
stats is a pointer to a stat structure as returned by the stat() system call.
matched is one of the values
FILE_CHOOSER_MATCHED or FILE_CHOOSER_NOT_
MATCHED
, indicating if the file name has matched the regular expression installed using
FILE_CHOOSER_FILTER_STRING.
xfrm field represents the file name, as returned by the strxfmt(3) function.
FILE_CHOOSER_CUSTOMIZE_OPEN
Allows the client to re-use the Open dialog within other contexts. Active only on a dialog of type
FILE_CHOOSER_OPEN. The recommended uses are Insert, Include or Import.
The first argument is a string that will be used as the label for a special-purpose button at the bottom
of the dialog. The Open button becomes Open Folder, as with a Save or Save As dialog. The s ...