XtAppSetFallbackResources(Xt) 6 January 1993 XtAppSetFallbackResources(Xt)
X Version 11 (Release 5)
Name
XtAppSetFallbackResources - specify default set of resource values
Syntax
void XtAppSetFallbackResources(app_context, specification_list)
XtAppContext app_context;
String *specification_list;
Arguments
appcontext
Specifies the application context in which the fallback speci-
fications will be used.
specificationlist
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 specificationlist points to a string in the format of
XrmPutLineResource. The resource specifications in specificationlist
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 specificationlist is not
NULL.
XtAppSetFallbackResources is not required to copy specificationlist. 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
specificationlist 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