rebuild geeqie
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1Template.c
blobc5e5e2cf9118cff1ef0739f7aeb95ed8b8f509aa
1 /* $XConsortium: Template.c,v 1.2 88/10/25 17:40:25 swick Exp $ */
2 /* Copyright Massachusetts Institute of Technology 1987, 1988 */
4 #include <X11/IntrinsicP.h>
5 #include <X11/StringDefs.h>
6 #include <X11/Xaw/TemplateP.h>
8 static XtResource resources[] = {
9 #define offset(field) XtOffset(TemplateWidget, template.field)
10 /* {name, class, type, size, offset, default_type, default_addr}, */
11 { XtNtemplateResource, XtCTemplateResource, XtRTemplateResource, sizeof(char*),
12 offset(resource), XtRString, "default" },
13 #undef offset
16 static void TemplateAction(/* Widget, XEvent*, String*, Cardinal* */) {
19 static XtActionsRec actions[] =
21 /* {name, procedure}, */
22 {"template", TemplateAction},
25 static char translations[] =
26 "<Key>: template() \n\
29 TemplateClassRec templateClassRec = {
30 { /* core fields */
31 /* superclass */ (WidgetClass) &widgetClassRec,
32 /* class_name */ "Template",
33 /* widget_size */ sizeof(TemplateRec),
34 /* class_initialize */ NULL,
35 /* class_part_initialize */ NULL,
36 /* class_inited */ FALSE,
37 /* initialize */ NULL,
38 /* initialize_hook */ NULL,
39 /* realize */ XtInheritRealize,
40 /* actions */ actions,
41 /* num_actions */ XtNumber(actions),
42 /* resources */ resources,
43 /* num_resources */ XtNumber(resources),
44 /* xrm_class */ NULLQUARK,
45 /* compress_motion */ TRUE,
46 /* compress_exposure */ TRUE,
47 /* compress_enterleave */ TRUE,
48 /* visible_interest */ FALSE,
49 /* destroy */ NULL,
50 /* resize */ NULL,
51 /* expose */ NULL,
52 /* set_values */ NULL,
53 /* set_values_hook */ NULL,
54 /* set_values_almost */ XtInheritSetValuesAlmost,
55 /* get_values_hook */ NULL,
56 /* accept_focus */ NULL,
57 /* version */ XtVersion,
58 /* callback_private */ NULL,
59 /* tm_table */ translations,
60 /* query_geometry */ XtInheritQueryGeometry,
61 /* display_accelerator */ XtInheritDisplayAccelerator,
62 /* extension */ NULL
64 { /* template fields */
65 /* empty */ 0
69 WidgetClass templateWidgetClass = (WidgetClass)&templateClassRec;