NAME
XtDestroyGC − Release 2 compatible function to free read-only GCs.
SYNOPSIS
void XtDestroyGC(w, gc)
Widget w;
GC gc;
Inputs
wSpecifies any object on the display for which the GC was created.
gcSpecifies the GC to be deallocated.
AVAILABILITY
XtDestroyGC() is superseded by XtReleaseGC().
DESCRIPTION
XtDestroyGC() deallocates a shared (read-only) Graphics Context. References to sharable GCs are counted, and a free request is generated to the server when the last user of a given GC destroys it.
Note that some earlier versions of XtDestroyGC() had only a gc argument. Therefore, this function is not very portable. In addition, XtDestroyGC() is only guaranteed to work properly if there is exactly one open display in the application.
USAGE
You should never use this function. Programs running under Release 3 and later should be converted to use XtReleaseGC().
SEE ALSO
XtAllocateGCUNIX SYSTEM V/68, XtGetGCUNIX SYSTEM V/68, XtReleaseGCUNIX SYSTEM V/68.