|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T x
Length: 1406 (0x57e)
Types: TextFile
Names: »xfallback.c«
└─⟦8648bda34⟧ Bits:30007244 EUUGD5_II: X11R5
└─⟦2ca9b63e1⟧ »./contrib-1/contrib-1.00«
└─⟦a8392fb20⟧
└─⟦this⟧ »contrib/examples/OReilly/Vol4/ch09/xfallback.c«
/*
* xfallback.c - simple program to demonstrate fallback resources
*/
/*
* Include files required for all Toolkit programs
*/
#include <X11/Intrinsic.h> /* Intrinsics Definitions*/
#include <X11/StringDefs.h> /* Standard Name-String definitions*/
/*
* Public include file for widgets we actually use in this file.
*/
#include <X11/Xaw/Label.h> /* Athena Label Widget */
main(argc, argv)
int argc;
char **argv;
{
XtAppContext app_context;
Widget topLevel, hello;
static String fallback_resources[] = {
"*hello.label: App defaults file not installed",
"*hello.font: *courier-bold*18*iso8859-1",
NULL, /* MUST BE NULL TERMINATED */
};
topLevel = XtVaAppInitialize(
&app_context, /* Application context */
"NoFile", /* Application class */
NULL, 0, /* command line option list */
&argc, argv, /* command line args */
fallback_resources, /* for missing app-defaults file */
NULL); /* terminate varargs list */
hello = XtVaCreateManagedWidget(
"hello", /* arbitrary widget name */
labelWidgetClass, /* widget class from Label.h */
topLevel, /* parent widget */
NULL); /* terminate varargs list */
/*
* Create windows for widgets and map them.
*/
XtRealizeWidget(topLevel);
/*
* Loop for events.
*/
XtAppMainLoop(app_context);
}