DtWidget: Improve portability of Motif interface
- Add missing includes and prototypes - Improve type compatibility - Use <Xm/XmPrivate.h> for unofficial libXm headers With this patch, dtpad no longer crashes on startup on FreeBSD/amd64 because of a truncated 64-bit pointer.
This commit is contained in:
committed by
Jon Trulson
parent
6e37640f11
commit
ceb49b9130
@@ -274,7 +274,7 @@ DtDialogBoxClassRec dtDialogBoxClassRec =
|
||||
{
|
||||
XtInheritTranslations, /* default_translations */
|
||||
NULL, /* get_resources */
|
||||
NULL, /* num_get_resources */
|
||||
0, /* num_get_resources */
|
||||
NULL, /* get_cont_resources */
|
||||
0, /* num_get_cont_resources */
|
||||
XmInheritParentProcess, /* parent_process */
|
||||
@@ -788,7 +788,7 @@ CreateChildren(
|
||||
XtSetArg (al[ac], XmNlabelString, string[i]); ac++;
|
||||
}
|
||||
XtSetArg (al[ac], XmNchildType, XmBUTTON); ac++;
|
||||
sprintf (button_name, "%s_%d\0", M_Name (new), i+1);
|
||||
sprintf (button_name, "%s_%d", M_Name (new), i+1);
|
||||
btn = XmCreatePushButtonGadget ((Widget)new, button_name, al, ac);
|
||||
XtManageChild (btn);
|
||||
XtAddCallback (btn, XmNactivateCallback,
|
||||
|
||||
Reference in New Issue
Block a user