gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / x11 / libXaw5 / src / Template.c
blob33063aa73b470590e81a4857322c4a60d961bdf2
1 /* $XConsortium: Template.c,v 1.5 94/04/17 20:12:58 converse Exp $ */
3 /*
5 Copyright (c) 1987 X Consortium
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 Except as contained in this notice, the name of the X Consortium shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from the X Consortium.
30 #include <X11/IntrinsicP.h>
31 #include <X11/StringDefs.h>
32 #include "TemplateP.h"
34 static XtResource resources[] = {
35 #define offset(field) XtOffsetOf(TemplateRec, template.field)
36 /* {name, class, type, size, offset, default_type, default_addr}, */
37 { XtNtemplateResource, XtCTemplateResource, XtRTemplateResource,
38 sizeof(char*), offset(resource), XtRString, (XtPointer) "default" },
39 #undef offset
42 static void TemplateAction(/* Widget, XEvent*, String*, Cardinal* */);
44 static XtActionsRec actions[] =
46 /* {name, procedure}, */
47 {"template", TemplateAction},
50 static char translations[] =
51 "<Key>: template() \n\
54 TemplateClassRec templateClassRec = {
55 { /* core fields */
56 /* superclass */ (WidgetClass) &widgetClassRec,
57 /* class_name */ "Template",
58 /* widget_size */ sizeof(TemplateRec),
59 /* class_initialize */ NULL,
60 /* class_part_initialize */ NULL,
61 /* class_inited */ FALSE,
62 /* initialize */ NULL,
63 /* initialize_hook */ NULL,
64 /* realize */ XtInheritRealize,
65 /* actions */ actions,
66 /* num_actions */ XtNumber(actions),
67 /* resources */ resources,
68 /* num_resources */ XtNumber(resources),
69 /* xrm_class */ NULLQUARK,
70 /* compress_motion */ TRUE,
71 /* compress_exposure */ TRUE,
72 /* compress_enterleave */ TRUE,
73 /* visible_interest */ FALSE,
74 /* destroy */ NULL,
75 /* resize */ NULL,
76 /* expose */ NULL,
77 /* set_values */ NULL,
78 /* set_values_hook */ NULL,
79 /* set_values_almost */ XtInheritSetValuesAlmost,
80 /* get_values_hook */ NULL,
81 /* accept_focus */ NULL,
82 /* version */ XtVersion,
83 /* callback_private */ NULL,
84 /* tm_table */ translations,
85 /* query_geometry */ XtInheritQueryGeometry,
86 /* display_accelerator */ XtInheritDisplayAccelerator,
87 /* extension */ NULL
89 { /* template fields */
90 /* empty */ 0
94 WidgetClass templateWidgetClass = (WidgetClass)&templateClassRec;