Change 'static XtResource' to 'static const XtResource' types for resources.

Thanks to Joe Keane <jgk@jgk.org>.
This commit is contained in:
ramiro%netscape.com 1998-09-17 09:55:48 +00:00
Родитель 0c08dfeeda
Коммит a9fc789e8a
25 изменённых файлов: 87 добавлений и 87 удалений

Просмотреть файл

@ -173,7 +173,7 @@ static XtActionsRec ComboBoxActionTable[] = {
* DtComboBoxWidget resources
*/
#define offset(field) XtOffset(DtComboBoxWidget, field)
static XtResource resources[] = {
static const XtResource resources[] = {
{XmNshadowThickness, XmCShadowThickness, XmRHorizontalDimension,
sizeof(Dimension), offset(manager.shadow_thickness),
XmRImmediate, (XtPointer)TEXT_FIELD_SHADOW},
@ -269,7 +269,7 @@ static XtResource resources[] = {
/*
* List resources (used for GetValues).
*/
static XmSyntheticResource syn_resources[] = {
static const XmSyntheticResource syn_resources[] = {
{XmNarrowSize, sizeof(Dimension), offset(combo_box.arrow_size),
_DtComboBoxGetArrowSize, _XmSetSyntheticResForChild},
{XmNlabelString, sizeof(XmString), offset(combo_box.label_string),

Просмотреть файл

@ -131,7 +131,7 @@ static char primTranslations[] =
"<FocusIn>: XmLFolderPrimFocusIn() PrimitiveFocusIn()\n\
<FocusOut>: XmLFolderPrimFocusOut() PrimitiveFocusOut()";
static XtResource resources[] =
static const XtResource resources[] =
{
/* Folder Resources */
{
@ -293,7 +293,7 @@ static XtResource resources[] =
},
};
static XtResource constraint_resources[] =
static const XtResource constraint_resources[] =
{
/* Folder Constraint Resources */
{
@ -342,7 +342,7 @@ XmLFolderClassRec xmlFolderClassRec =
(XtRealizeProc)Realize, /* realize */
(XtActionList)actions, /* actions */
(Cardinal)XtNumber(actions), /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -372,7 +372,7 @@ XmLFolderClassRec xmlFolderClassRec =
0, /* extension */
},
{ /* constraint_class */
constraint_resources, /* subresources */
(XtResource *)constraint_resources, /* subresources */
XtNumber(constraint_resources), /* subresource_count */
sizeof(XmLFolderConstraintRec), /* constraint_size */
(XtInitProc)ConstraintInitialize, /* initialize */

Просмотреть файл

@ -446,7 +446,7 @@ static char unhideButtonTranslations[] =
"<BtnDown>,<BtnUp>: XmLGridUnhideColumn()";
#endif /*0*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Grid Resources */
{
@ -1206,7 +1206,7 @@ XmLGridClassRec xmlGridClassRec =
(XtRealizeProc)Realize, /* realize */
(XtActionList)actions, /* actions */
(Cardinal)XtNumber(actions), /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */

Просмотреть файл

@ -55,7 +55,7 @@ static void GetManagerForeground(Widget w, int, XrmValue *value);
static void CreateDefaultPixmaps(XmLTreeWidget t);
static XmLTreeWidget WidgetToTree(Widget w, char *funcname);
static XtResource resources[] =
static const XtResource resources[] =
{
{
XmNcollapseCallback, XmCCallback,

Просмотреть файл

@ -80,7 +80,7 @@ static void DrawArrow (Widget,XEvent *,Region,XRectangle *);
/* XfeArrow Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Arrow resources */
{
@ -177,7 +177,7 @@ static XtResource resources[] =
/* XfeButton Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNarrowHeight,
@ -215,7 +215,7 @@ _XFE_WIDGET_CLASS_RECORD(arrow,Arrow) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -244,7 +244,7 @@ _XFE_WIDGET_CLASS_RECORD(arrow,Arrow) =
XmInheritBorderUnhighlight, /* border_unhighlight */
XtInheritTranslations, /* translations */
XmInheritArmAndActivate, /* arm_and_activate */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
NULL, /* extension */
},

Просмотреть файл

@ -145,7 +145,7 @@ static void DefaultRaiseBackground (Widget,int,XrmValue *);
/* XfeButton Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -506,7 +506,7 @@ static XtResource resources[] =
/* XfeButton Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNarmOffset,
@ -576,7 +576,7 @@ _XFE_WIDGET_CLASS_RECORD(button,Button) =
XtInheritRealize, /* realize */
actions, /* actions */
XtNumber(actions), /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -605,7 +605,7 @@ _XFE_WIDGET_CLASS_RECORD(button,Button) =
XmInheritBorderUnhighlight, /* border_unhighlight */
XtInheritTranslations, /* translations */
_XfeButtonArmAndActivate, /* arm_and_activate */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
NULL, /* extension */
},

Просмотреть файл

@ -91,7 +91,7 @@ static void MappingEH (Widget,XtPointer,XEvent *,Boolean *);
/* XfeBypassShell resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Realization callback resources */
{
@ -289,7 +289,7 @@ _XFE_WIDGET_CLASS_RECORD(bypassshell,BypassShell) =
NULL, /* actions */
0, /* num_actions */
#endif
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
True, /* compress_motion */

Просмотреть файл

@ -118,7 +118,7 @@ static void UnGrabEH (Widget,XtPointer,XEvent *,Boolean *);
/* XfeCascade Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -300,7 +300,7 @@ static XtResource resources[] =
/* XfeButton Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNcascadeArrowHeight,
@ -350,7 +350,7 @@ _XFE_WIDGET_CLASS_RECORD(cascade,Cascade) =
XtInheritRealize, /* realize */
actions, /* actions */
XtNumber(actions), /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -379,7 +379,7 @@ _XFE_WIDGET_CLASS_RECORD(cascade,Cascade) =
XmInheritBorderUnhighlight, /* border_unhighlight */
XtInheritTranslations, /* translations */
XmInheritArmAndActivate, /* arm_and_activate */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
NULL, /* extension */
},

Просмотреть файл

@ -110,7 +110,7 @@ static void DefaultChromeChildType (Widget,int,XrmValue *);
/* XfeChrome resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Resources */
{
@ -239,7 +239,7 @@ static XtResource resources[] =
/* XfeChrome synthetic resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource synthetic_resources[] =
static const XmSyntheticResource synthetic_resources[] =
{
{
XmNspacing,
@ -255,7 +255,7 @@ static XmSyntheticResource synthetic_resources[] =
/* XfeChrome constraint resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource constraint_resources[] =
static const XtResource constraint_resources[] =
{
{
XmNchromeChildType,
@ -287,7 +287,7 @@ _XFE_WIDGET_CLASS_RECORD(chrome,Chrome) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -321,7 +321,7 @@ _XFE_WIDGET_CLASS_RECORD(chrome,Chrome) =
/* Constraint Part */
{
constraint_resources, /* constraint res */
(XtResource *)constraint_resources, /* constraint res */
XtNumber(constraint_resources), /* num constraint res */
sizeof(XfeChromeConstraintRec), /* constraint size */
ConstraintInitialize, /* init proc */
@ -333,7 +333,7 @@ _XFE_WIDGET_CLASS_RECORD(chrome,Chrome) =
/* XmManager Part */
{
XtInheritTranslations, /* tm_table */
synthetic_resources, /* syn resources */
(XmSyntheticResource *)synthetic_resources, /* syn resources */
XtNumber(synthetic_resources), /* num syn_resources */
NULL, /* syn resources */
0, /* num syn_resources */

Просмотреть файл

@ -119,7 +119,7 @@ static void FloatingCloseCB (Widget,XtPointer,XtPointer);
/* XfeDashBoard Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -264,7 +264,7 @@ static XtResource resources[] =
/* XfeDashBoard Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNspacing,
@ -294,7 +294,7 @@ _XFE_WIDGET_CLASS_RECORD(dashboard,DashBoard) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -340,7 +340,7 @@ _XFE_WIDGET_CLASS_RECORD(dashboard,DashBoard) =
/* XmManager Part */
{
XtInheritTranslations, /* tm_table */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
NULL, /* syn_cont_resources */
0, /* num_syn_cont_resource*/

Просмотреть файл

@ -90,7 +90,7 @@ static void MappingEH (Widget,XtPointer,XEvent *,Boolean *);
/* XfeFrameShell resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Realization callback resources */
{
@ -299,7 +299,7 @@ _XFE_WIDGET_CLASS_RECORD(frameshell,FrameShell) =
Realize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
FALSE, /* compress_motion */

Просмотреть файл

@ -83,7 +83,7 @@ static void InvokeSelectionChangedCallback (Widget,XEvent *);
/* XfeLabel Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -258,7 +258,7 @@ _XFE_WIDGET_CLASS_RECORD(label,Label) =
XtInheritRealize, /* realize */
actions, /* actions */
XtNumber(actions), /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */

Просмотреть файл

@ -83,7 +83,7 @@ static void AddTimeout (Widget);
/* XfeLogo Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -184,7 +184,7 @@ _XFE_WIDGET_CLASS_RECORD(logo,Logo) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */

Просмотреть файл

@ -130,7 +130,7 @@ static void LayableInfoFree (Widget);
/* XfeManager Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -483,7 +483,7 @@ static XtResource resources[] =
/* XfeManager Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNmarginBottom,
@ -534,7 +534,7 @@ static XmSyntheticResource syn_resources[] =
/* XfeManager Constraint Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource constraint_resources[] =
static const XtResource constraint_resources[] =
{
{
XmNpositionIndex,
@ -580,7 +580,7 @@ _XFE_WIDGET_CLASS_RECORD(manager,Manager) =
Realize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -614,7 +614,7 @@ _XFE_WIDGET_CLASS_RECORD(manager,Manager) =
/* Constraint Part */
{
constraint_resources, /* resource list */
(XtResource *)constraint_resources, /* resource list */
XtNumber(constraint_resources), /* num resources */
sizeof(XfeManagerConstraintRec), /* constraint size */
ConstraintInitialize, /* init proc */
@ -626,7 +626,7 @@ _XFE_WIDGET_CLASS_RECORD(manager,Manager) =
/* XmManager Part */
{
XtInheritTranslations, /* tm_table */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
NULL, /* syn_cont_resources */
0, /* num_syn_cont_res */

Просмотреть файл

@ -108,7 +108,7 @@ static void DescendantPrimitiveCursorCB (Widget,XtPointer,XtPointer);
/* XfeOriented Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Orientation resources */
{
@ -188,7 +188,7 @@ static XtResource resources[] =
/* XfeToolBar Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNspacing,
@ -204,7 +204,7 @@ static XmSyntheticResource syn_resources[] =
/* XfeOriented constraint resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource constraint_resources[] =
static const XtResource constraint_resources[] =
{
{
XmNallowDrag,
@ -236,7 +236,7 @@ _XFE_WIDGET_CLASS_RECORD(oriented,Oriented) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -270,7 +270,7 @@ _XFE_WIDGET_CLASS_RECORD(oriented,Oriented) =
/* Constraint Part */
{
constraint_resources, /* constraint res */
(XtResource *)constraint_resources, /* constraint res */
XtNumber(constraint_resources), /* num constraint res */
sizeof(XfeOrientedConstraintRec), /* constraint size */
ConstraintInitialize, /* init proc */
@ -282,7 +282,7 @@ _XFE_WIDGET_CLASS_RECORD(oriented,Oriented) =
/* XmManager Part */
{
XtInheritTranslations, /* tm_table */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
NULL, /* syn_cont_resources */
0, /* num_syn_cont_resource*/

Просмотреть файл

@ -188,7 +188,7 @@ static void DefaultPaneChildAttachment (Widget,int,XrmValue *);
/* XfePane resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Sash resources */
{
@ -425,7 +425,7 @@ static XtResource resources[] =
/* XfePane synthetic resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource synthetic_resources[] =
static const XmSyntheticResource synthetic_resources[] =
{
{
XmNsashOffset,
@ -462,7 +462,7 @@ static XmSyntheticResource synthetic_resources[] =
/* XfePane constraint resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource constraint_resources[] =
static const XtResource constraint_resources[] =
{
{
XmNpaneMaximum,
@ -534,7 +534,7 @@ static XtResource constraint_resources[] =
/* XfePane constraint synthetic resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource constraint_synthetic_resources[] =
static const XmSyntheticResource constraint_synthetic_resources[] =
{
{
XmNpaneMaximum,
@ -571,7 +571,7 @@ _XFE_WIDGET_CLASS_RECORD(pane,Pane) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -605,7 +605,7 @@ _XFE_WIDGET_CLASS_RECORD(pane,Pane) =
/* Constraint Part */
{
constraint_resources, /* constraint res */
(XtResource *)constraint_resources, /* constraint res */
XtNumber(constraint_resources), /* num constraint res */
sizeof(XfePaneConstraintRec), /* constraint size */
ConstraintInitialize, /* init proc */
@ -617,9 +617,9 @@ _XFE_WIDGET_CLASS_RECORD(pane,Pane) =
/* XmManager Part */
{
XtInheritTranslations, /* tm_table */
synthetic_resources, /* syn resources */
(XmSyntheticResource *)synthetic_resources, /* syn resources */
XtNumber(synthetic_resources), /* num syn_resources */
constraint_synthetic_resources, /* syn_cont_resources */
(XmSyntheticResource *)constraint_synthetic_resources, /* syn_cont_resources */
XtNumber(constraint_synthetic_resources),/* num_syn_cont_resource*/
XmInheritParentProcess, /* parent_process */
NULL, /* extension */

Просмотреть файл

@ -103,7 +103,7 @@ static Dimension GetHeight (Widget);
/* XfePrimitive Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -354,7 +354,7 @@ static XtResource resources[] =
/* XfePrimitive Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNmarginBottom,
@ -434,7 +434,7 @@ _XFE_WIDGET_CLASS_RECORD(primitive,Primitive) =
Realize, /* realize */
actions, /* actions */
XtNumber(actions), /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -463,7 +463,7 @@ _XFE_WIDGET_CLASS_RECORD(primitive,Primitive) =
XmInheritBorderUnhighlight, /* border_unhighlight */
XtInheritTranslations, /* translations */
NULL, /* arm_and_activate */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
(XtPointer) &primClassExtRec, /* extension */
},

Просмотреть файл

@ -86,7 +86,7 @@ static void CheckCylonWidth (Widget);
/* XfeProgressBar Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Resources */
{
@ -234,7 +234,7 @@ _XFE_WIDGET_CLASS_RECORD(progressbar,ProgressBar) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */

Просмотреть файл

@ -70,7 +70,7 @@ static void FillTabHorizontal (Widget,Pixmap,Dimension,Dimension);
/* XfeTab Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Resources */
{
@ -256,7 +256,7 @@ _XFE_WIDGET_CLASS_RECORD(tab,Tab) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */

Просмотреть файл

@ -86,7 +86,7 @@ static void ActionCallback (Widget,XtPointer,XtPointer);
/* XfeTaskBar Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -195,7 +195,7 @@ _XFE_WIDGET_CLASS_RECORD(taskbar,TaskBar) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */

Просмотреть файл

@ -181,7 +181,7 @@ static void EditTextCreate (Widget);
/* XfeToolBar Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -450,7 +450,7 @@ static XtResource resources[] =
/* XfeToolBar Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNraiseBorderThickness,
@ -493,7 +493,7 @@ _XFE_WIDGET_CLASS_RECORD(toolbar,ToolBar) =
XtInheritRealize, /* realize */
actions, /* actions */
XtNumber(actions), /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -544,7 +544,7 @@ _XFE_WIDGET_CLASS_RECORD(toolbar,ToolBar) =
/* XmManager Part */
{
XtInheritTranslations, /* tm_table */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
NULL, /* syn_cont_resources */
0, /* num_syn_cont_resource*/

Просмотреть файл

@ -163,7 +163,7 @@ static void DescendantEH (Widget,XtPointer,XEvent *,Boolean *);
/* XfeToolBox Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Callback resources */
{
@ -495,7 +495,7 @@ static XtResource resources[] =
/* XfeBoxBar Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNverticalSpacing,
@ -539,7 +539,7 @@ static XmSyntheticResource syn_resources[] =
/* XfeToolBox constraint resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource constraint_resources[] =
static const XtResource constraint_resources[] =
{
{
XmNopen,
@ -571,7 +571,7 @@ _XFE_WIDGET_CLASS_RECORD(toolbox,ToolBox) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -605,7 +605,7 @@ _XFE_WIDGET_CLASS_RECORD(toolbox,ToolBox) =
/* Constraint Part */
{
constraint_resources, /* constraint res */
(XtResource *)constraint_resources, /* constraint res */
XtNumber(constraint_resources), /* num constraint res */
sizeof(XfeToolBoxConstraintRec), /* constraint size */
ConstraintInitialize, /* init proc */
@ -617,7 +617,7 @@ _XFE_WIDGET_CLASS_RECORD(toolbox,ToolBox) =
/* XmManager Part */
{
XtInheritTranslations, /* tm_table */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
NULL, /* syn_cont_resources */
0, /* num_syn_cont_resource*/

Просмотреть файл

@ -60,7 +60,7 @@ static Boolean InsertChild (Widget);
/* XfeToolItem Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Components */
{
@ -97,7 +97,7 @@ static XtResource resources[] =
/* XfeToolItem Synthetic Resources */
/* */
/*----------------------------------------------------------------------*/
static XmSyntheticResource syn_resources[] =
static const XmSyntheticResource syn_resources[] =
{
{
XmNspacing,
@ -127,7 +127,7 @@ _XFE_WIDGET_CLASS_RECORD(toolitem,ToolItem) =
XtInheritRealize, /* realize */
NULL, /* actions */
0, /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */
@ -173,7 +173,7 @@ _XFE_WIDGET_CLASS_RECORD(toolitem,ToolItem) =
/* XmManager Part */
{
XtInheritTranslations, /* tm_table */
syn_resources, /* syn resources */
(XmSyntheticResource *)syn_resources, /* syn resources */
XtNumber(syn_resources), /* num syn_resources */
NULL, /* syn_cont_resources */
0, /* num_syn_cont_resource*/

Просмотреть файл

@ -89,7 +89,7 @@ static void AccentErase (Widget);
/* XfeBmButton Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Pixmap resources */
{
@ -203,7 +203,7 @@ _XFE_WIDGET_CLASS_RECORD(bmbutton,BmButton) =
XtInheritRealize, /* realize */
actions, /* actions */
XtNumber(actions), /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */

Просмотреть файл

@ -96,7 +96,7 @@ static void AccentErase (Widget);
/* XfeBmCascade Resources */
/* */
/*----------------------------------------------------------------------*/
static XtResource resources[] =
static const XtResource resources[] =
{
/* Pixmap resources */
{
@ -218,7 +218,7 @@ _XFE_WIDGET_CLASS_RECORD(bmcascade,BmCascade) =
XtInheritRealize, /* realize */
actions, /* actions */
XtNumber(actions), /* num_actions */
resources, /* resources */
(XtResource *)resources, /* resources */
XtNumber(resources), /* num_resources */
NULLQUARK, /* xrm_class */
TRUE, /* compress_motion */