extern char * _XmExtObjAlloc(int size);
extern void _XmExtObjFree(XtPointer element);
extern void _XmSelectColorDefault ( Widget, int, XrmValue * );
+/* From XmP.h */
+extern void _XmExtImportArgs( Widget w, ArgList args, Cardinal *num_args);
+/* From TravActI.h */
+extern void _XmEnterGadget( Widget wid, XEvent *event, String*,Cardinal*);
#define SPACING_DEFAULT 2
#define MARGIN_DEFAULT 2
{
G_MarginWidth (new) =
XmeToHorizontalPixels ((Widget)new, G_UnitType (new),
- (XtArgVal *)G_MarginWidth (new));
+ (XtArgVal *)((long)G_MarginWidth (new)));
G_MarginHeight (new) =
XmeToVerticalPixels ((Widget)new, G_UnitType (new),
- (XtArgVal *)G_MarginHeight (new));
+ (XtArgVal *)((long)G_MarginHeight (new)));
}
/* Check for unspecified margins.
(G_PixmapPosition (new) == XmPIXMAP_LEFT ||
G_PixmapPosition (new) == XmPIXMAP_RIGHT)
? XmeToHorizontalPixels ((Widget)new, G_UnitType (new),
- (XtArgVal *)G_Spacing (new))
+ (XtArgVal *)((long)G_Spacing (new)))
: XmeToVerticalPixels ((Widget)new, G_UnitType (new),
- (XtArgVal *)G_Spacing (new));
+ (XtArgVal *)((long)G_Spacing (new)));
}
/* Set width and height.
{
G_MarginWidth (new) =
XmeToHorizontalPixels ((Widget)new, G_UnitType (new),
- (XtArgVal *)G_MarginWidth (new));
+ (XtArgVal *)((long)G_MarginWidth (new)));
G_MarginHeight (new) =
XmeToVerticalPixels ((Widget)new, G_UnitType (new),
- (XtArgVal *)G_MarginHeight (new));
+ (XtArgVal *)((long)G_MarginHeight (new)));
}
/* Convert spacing.
(G_PixmapPosition (new) == XmPIXMAP_LEFT ||
G_PixmapPosition (new) == XmPIXMAP_RIGHT)
? XmeToHorizontalPixels ((Widget)new, G_UnitType (new),
- (XtArgVal *)G_Spacing (new))
+ (XtArgVal *)((long)G_Spacing (new)))
: XmeToVerticalPixels ((Widget)new, G_UnitType (new),
- (XtArgVal *)G_Spacing (new));
+ (XtArgVal *)((long)G_Spacing (new)));
}
/* Process change in string or font list.
IconDisarm (w, (XEvent*) event);
}
else if (event_mask & XmHELP_EVENT)
- _XmSocorro (w, (XEvent *)event,
- (String *)NULL,(Cardinal)0);
+ _XmSocorro (w, (XEvent *)event,NULL,NULL);
else if (event_mask & XmENTER_EVENT)
IconEnter (w, (XEvent *)event);
else if (event_mask & XmLEAVE_EVENT)
IconLeave (w, (XEvent *)event);
else if (event_mask & XmFOCUS_IN_EVENT)
- _XmFocusInGadget (w, (XEvent *)event,
- (String *)NULL,(Cardinal)0);
+ _XmFocusInGadget (w, (XEvent *)event,NULL,NULL);
else if (event_mask & XmFOCUS_OUT_EVENT)
- _XmFocusOutGadget (w, (XEvent *)event,
- (String *)NULL,(Cardinal)0);
+ _XmFocusOutGadget (w, (XEvent *)event,NULL,NULL);
}
/* Draw shadow.
*/
- if (G_ShadowThickness (g) > 0 && G_DrawShadow(g))
+ if (G_ShadowThickness (g) > 0 && G_DrawShadow(g)){
if(G_BorderType(g) == DtRECTANGLE || !G_Pixmap(g))
{
unsigned char shadow_type;
_DtProcessUnlock();
(*call_callback) (g, G_Callback (g), XmCR_SHADOW, NULL);
}
+ }
}