1 typedef __SIZE_TYPE__
size_t;
2 typedef void *XtPointer
;
4 typedef struct _WidgetRec
*Widget
;
5 typedef struct _WidgetClassRec
*WidgetClass
;
7 extern WidgetClass commandWidgetClass
;
9 typedef void (*XtCallbackProc
)(
15 extern const char XtStrings
[];
22 XtCallbackProc Callback
;
25 } DialogButtonType
, *DialogButtonTypePtr
;
28 Widget
AddButtons(Widget Parent
, Widget Top
,
29 DialogButtonTypePtr Buttons
, size_t Count
)
33 for (i
= 0; i
< Count
; i
++)
35 if (!Buttons
[i
].Label
)
37 Buttons
[i
].W
= XtVaCreateManagedWidget(Buttons
[i
].Name
,
40 ((char*)&XtStrings
[429]) , Buttons
[i
].Label
,
41 "fromHoriz" , i
? Buttons
[i
-1].W
: ((void *)0) ,
46 XtAddCallback(((char*)&XtStrings
[136]),
47 Buttons
[i
].Callback
, Buttons
[i
].ClientData
);
49 return(Buttons
[Count
-1].W
);