/*----------------------------------------------------------------------*/ static void Initialize(Widget rw,Widget nw,ArgList args,Cardinal *nargs) { XfeArrowPart * ap = _XfeArrowPart(nw); /* Make sure rep types are ok */ XfeRepTypeCheck(nw,XmRArrowDirection,&ap->arrow_direction,XmARROW_DOWN); /* Allocate the insensitve GC */ ap->arrow_insens_GC = XfeAllocateColorGc(nw,_XfeForeground(nw),_XfeBackgroundPixel(nw),False); /* Finish of initialization */ _XfePrimitiveChainInitialize(rw,nw,xfeArrowWidgetClass); }
/*----------------------------------------------------------------------*/ static void Initialize(Widget rw,Widget nw,ArgList args,Cardinal *nargs) { /* Make sure the shadow is ok */ XfeRepTypeCheck(nw,XmRShadowType,&_XfeShadowType(nw),XfeDEFAULT_SHADOW_TYPE); /* Make sure the buffer is ok */ XfeRepTypeCheck(nw,XmRBufferType,&_XfeBufferType(nw),XfeDEFAULT_BUFFER_TYPE); /* Initialize private members */ _XfeBufferPixmap(nw) = XmUNSPECIFIED_PIXMAP; _XfeBackgroundGC(nw) = NULL; /* Allocate the background gc if needed */ if (_XfeBufferType(nw) != XmBUFFER_NONE) { _XfePrimitiveAllocateBackgroundGC(nw); } /* Finish initialization */ _XfePrimitiveChainInitialize(rw,nw,xfePrimitiveWidgetClass); }