DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 
X Version 11 (Release 5)

XtAppSetFallbackResources(Xt)


XtAppSetFallbackResources -- specify default set of resource values

Syntax

void XtAppSetFallbackResources(app_context, specification_list)
XtAppContext app_context;
String *specification_list;

Arguments


app_context
Specifies the application context in which the fallback specifications will be used.

specification_list
Specifies a NULL-terminated list of resource specifications to preload the database, or NULL.

Description

The XtAppSetFallbackResources function specifies a default set of resource values that will be used to initialize the resource database if no application-specific class resource file is found.

Each entry in specification_list points to a string in the format of XrmPutLineResource. The resource specifications in specification_list will be merged into the screen resource database in place of the application-specific class resource file if, following a call to XtAppSetFallbackResources when a resource database is being created for a particular screen, the Intrinsics are not able to find or read an application-specific class resource file and specification_list is not NULL.

XtAppSetFallbackResources is not required to copy specification_list. The caller must ensure that the contents of the list and of the strings addressed by the list, remain valid until all displays are initialized or until XtAppSetFallbackResources is called again. The value NULL for specification_list removes any previous fallback resource specification for the application context. The intended use for fallback resources is to provide a minimal number of resources that will make the application usable (or at least terminate with helpful diagnostic messages) when some problem exists in finding and loading the application defaults file.

See also

XtAppInitialize(Xt) and XtDisplayInitialize(Xt).

X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface


© 2003 X Toolkit Intrinsics (Xt)
SCO OpenServer Release 5.0.7 -- 11 February 2003