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
@@ -59,12 +59,14 @@
|
||||
#include <X11/Xos_r.h>
|
||||
#include <Xm/GadgetP.h>
|
||||
#include <Xm/DrawP.h>
|
||||
#include <Xm/XmP.h>
|
||||
#include <Dt/Control.h>
|
||||
#include <Dt/ControlP.h>
|
||||
#include <Xm/ManagerP.h>
|
||||
#include <Dt/MacrosP.h>
|
||||
#include <langinfo.h>
|
||||
#include "DtWidgetI.h"
|
||||
#include "DtSvcInternal.h"
|
||||
|
||||
|
||||
/******** Public Function Declarations ********/
|
||||
@@ -577,7 +579,7 @@ BusyTimeout(
|
||||
else
|
||||
{
|
||||
G_Set (g) = False;
|
||||
G_BlinkTimer (g) = NULL;
|
||||
G_BlinkTimer (g) = 0;
|
||||
G_BlinkElapsed (g) = 0;
|
||||
G_Busy (g) = 0;
|
||||
(*call_callback) ((DtIconGadget) g, G_Callback (g), XmCR_BUSY_STOP, NULL);
|
||||
@@ -830,7 +832,7 @@ Initialize(
|
||||
G_ControlType (new) != XmCONTROL_MAIL &&
|
||||
G_ControlType (new) != XmCONTROL_MONITOR)
|
||||
{
|
||||
G_ControlType (new) == XmCONTROL_NONE;
|
||||
G_ControlType (new) = XmCONTROL_NONE;
|
||||
}
|
||||
|
||||
if (G_ControlType (new) == XmCONTROL_SWITCH)
|
||||
|
||||
Reference in New Issue
Block a user