Skip to Main Content
Volume 7B: XView Reference Manual
book

Volume 7B: XView Reference Manual

by Dan Heller
September 1991
Intermediate to advanced content levelIntermediate to advanced
311 pages
7h 17m
English
O'Reilly Media, Inc.
Content preview from Volume 7B: XView Reference Manual
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Gestion des couleurs pas à pas

Gestion des couleurs pas à pas

Jean Delmas
1,000 Garment Graphics

1,000 Garment Graphics

Jeffrey Everett

Publisher Resources

ISBN: 9780937175880