static void
racetoggleCallback(w, client, call)
Widget w;
-caddr_t client, call;
+XtPointer client, call;
{
Arg args[2];
int j, valid;
static void
roletoggleCallback(w, client, call)
Widget w;
-caddr_t client, call;
+XtPointer client, call;
{
Arg args[2];
static void
gendertoggleCallback(w, client, call)
Widget w;
-caddr_t client, call;
+XtPointer client, call;
{
int r = xtp2i(XawToggleGetCurrent(plsel_gend_radios[0])) - 1;
static void
aligntoggleCallback(w, client, call)
Widget w;
-caddr_t client, call;
+XtPointer client, call;
{
int r = xtp2i(XawToggleGetCurrent(plsel_align_radios[0])) - 1;
XtInstallAccelerators(plsel_name_input, plsel_name_input);
XtSetKeyboardFocus(form, plsel_name_input);
} else {
- XtSetArg(args[0], XtNdisplayCaret, False);
+ XtSetArg(args[0], nhStr(XtNdisplayCaret), False);
XtSetValues(plsel_name_input, args, ONE);
}
tmpwidget); num_args++;
XtSetArg(args[num_args], XtNwidth, cwid); num_args++;
if (i > 0)
- XtSetArg(args[num_args], XtNradioGroup,
+ XtSetArg(args[num_args], nhStr(XtNradioGroup),
plsel_race_radios[0]); num_args++;
- XtSetArg(args[num_args], XtNradioData, (i + 1)); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioData), (i + 1)); num_args++;
racewidget = XtCreateManagedWidget(races[i].noun,
toggleWidgetClass,
tmpwidget); num_args++;
XtSetArg(args[num_args], nhStr(XtNwidth), cwid); num_args++;
if (i > 0)
- XtSetArg(args[num_args], XtNradioGroup,
+ XtSetArg(args[num_args], nhStr(XtNradioGroup),
plsel_role_radios[0]); num_args++;
- XtSetArg(args[num_args], XtNradioData, (i + 1)); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioData), (i + 1)); num_args++;
rolewidget = XtCreateManagedWidget(roles[i].name.m,
toggleWidgetClass,
/* gender radio buttons */
num_args = 0;
XtSetArg(args[num_args], XtNwidth, cwid); num_args++;
- XtSetArg(args[num_args], XtNradioData, 1); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioData), 1); num_args++;
plsel_gend_radios[0] = gend_radio_m
= XtCreateManagedWidget("Male", toggleWidgetClass,
gend_form2, args, num_args);
num_args = 0;
- XtSetArg(args[num_args], XtNfromVert, gend_radio_m); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNfromVert), gend_radio_m); num_args++;
XtSetArg(args[num_args], XtNwidth, cwid); num_args++;
- XtSetArg(args[num_args], XtNradioGroup, plsel_gend_radios[0]); num_args++;
- XtSetArg(args[num_args], XtNradioData, 2); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioGroup), plsel_gend_radios[0]); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioData), 2); num_args++;
plsel_gend_radios[1] = gend_radio_f
= XtCreateManagedWidget("Female", toggleWidgetClass,
gend_form2, args, num_args);
XawToggleUnsetCurrent(plsel_gend_radios[0]);
XtAddCallback(gend_radio_m, XtNcallback,
- gendertoggleCallback, (caddr_t) (1));
+ gendertoggleCallback, (XtPointer) (1));
XtAddCallback(gend_radio_f, XtNcallback,
- gendertoggleCallback, (caddr_t) (2));
+ gendertoggleCallback, (XtPointer) (2));
/********************************************/
num_args = 0;
XtSetArg(args[num_args], nhStr(XtNfromVert), gend_form); num_args++;
- XtSetArg(args[num_args], XtNvertDistance, 30); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNvertDistance), 30); num_args++;
XtSetArg(args[num_args], nhStr(XtNfromHoriz), role_form); num_args++;
align_form = XtCreateManagedWidget("align_form", formWidgetClass, form,
args, num_args);
num_args = 0;
XtSetArg(args[num_args], XtNwidth, cwid); num_args++;
- XtSetArg(args[num_args], XtNradioData, 1); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioData), 1); num_args++;
plsel_align_radios[0] = align_radio_l
= XtCreateManagedWidget("Lawful", toggleWidgetClass,
align_form2, args, num_args);
num_args = 0;
- XtSetArg(args[num_args], XtNfromVert, align_radio_l); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNfromVert), align_radio_l); num_args++;
XtSetArg(args[num_args], XtNwidth, cwid); num_args++;
- XtSetArg(args[num_args], XtNradioGroup, plsel_align_radios[0]); num_args++;
- XtSetArg(args[num_args], XtNradioData, 2); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioGroup), plsel_align_radios[0]); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioData), 2); num_args++;
plsel_align_radios[1] = align_radio_n
= XtCreateManagedWidget("Neutral", toggleWidgetClass,
align_form2, args, num_args);
num_args = 0;
- XtSetArg(args[num_args], XtNfromVert, align_radio_n); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNfromVert), align_radio_n); num_args++;
XtSetArg(args[num_args], XtNwidth, cwid); num_args++;
- XtSetArg(args[num_args], XtNradioGroup, plsel_align_radios[0]); num_args++;
- XtSetArg(args[num_args], XtNradioData, 3); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioGroup), plsel_align_radios[0]); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNradioData), 3); num_args++;
plsel_align_radios[2] = align_radio_c = XtCreateManagedWidget("Chaotic",
toggleWidgetClass,
align_form2,
XawToggleUnsetCurrent(plsel_align_radios[0]);
XtAddCallback(align_radio_l, XtNcallback,
- aligntoggleCallback, (caddr_t) (1));
+ aligntoggleCallback, (XtPointer) (1));
XtAddCallback(align_radio_n, XtNcallback,
- aligntoggleCallback, (caddr_t) (2));
+ aligntoggleCallback, (XtPointer) (2));
XtAddCallback(align_radio_c, XtNcallback,
- aligntoggleCallback, (caddr_t) (3));
+ aligntoggleCallback, (XtPointer) (3));
/********************************************/
num_args = 0;
XtSetArg(args[num_args], nhStr(XtNfromVert), align_form); num_args++;
- XtSetArg(args[num_args], XtNvertDistance, 30); num_args++;
+ XtSetArg(args[num_args], nhStr(XtNvertDistance), 30); num_args++;
XtSetArg(args[num_args], nhStr(XtNrightMargin), 0); num_args++;
XtSetArg(args[num_args], nhStr(XtNfromHoriz), role_form); num_args++;
XtSetArg(args[num_args], XtNforceBars, False); num_args++;