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
@@ -63,6 +63,9 @@
|
||||
#include <Xm/LabelP.h>
|
||||
#include <Xm/MenuUtilP.h>
|
||||
#include <Xm/DrawP.h>
|
||||
#include <Xm/XmP.h>
|
||||
|
||||
#include <Xm/XmPrivate.h> /* _XmRecordEvent, _XmSetInDragMode, ... */
|
||||
|
||||
#include <X11/keysymdef.h>
|
||||
#include "DtWidgetI.h"
|
||||
@@ -795,7 +798,7 @@ SetValues(
|
||||
Boolean flag = FALSE;
|
||||
Boolean adjustWidth = FALSE;
|
||||
Boolean adjustHeight = FALSE;
|
||||
unsigned char rowcol_type = NULL;
|
||||
unsigned char rowcol_type = 0;
|
||||
Display *dpy = XtDisplay(nw);
|
||||
Boolean menu_glyph_changed = FALSE;
|
||||
|
||||
@@ -911,7 +914,7 @@ Initialize(
|
||||
Boolean adjustWidth = FALSE;
|
||||
Boolean adjustHeight = FALSE;
|
||||
Widget parent = XtParent(new_w);
|
||||
unsigned char rowcol_type = NULL;
|
||||
unsigned char rowcol_type = 0;
|
||||
char *name = NULL;
|
||||
|
||||
if ((XmIsRowColumn (parent))) {
|
||||
|
||||
Reference in New Issue
Block a user