Name
XtDestroyGC — Release 2 compatible function to free
read-only GCs.
Synopsis
void XtDestroyGC(gc)
GC gc;
Arguments
wSpecifies the widget.
gcSpecifies the GC to be deallocated.
Description
XtDestroyGC is superseded by XtReleaseGC. XtDestroyGC deallocates a shared (read-only) Graphics Context. References to shareable 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.
Programs running under Release 3 and later should be converted to use XtReleaseGC.