A toolkit function that transfers data from the primary selection to a widget
Format
#include <Xm/TransferP.h> Boolean XmePrimarySinkWidget widgetXtEnum opXtPointer location_dataTime time
DESCRIPTION
XmePrimarySink transfers data from the primary selection to a widget.
XmePrimarySink initializes an XmDestinationCallbackStruct as follows:
XmePrimarySink makes the following sequence of calls:
It is the responsibility of the XmNdestinationCallback procedures and the destinationProc trait method to transfer any data to the destination widget.
If op is XmMOVE and the data is successfully transferred, XmePrimarySink asks the owner of the PRIMARY selection to convert that selection to the DELETE target. If the selection owner has called XmePrimarySource to take ownership of the selection, this conversion request first calls the owner's XmNconvertCallback procedures, if any. If no XmNconvertCallback procedures exist or if these procedures return a status of XmCONVERT_DEFAULT or XmCONVERT_MERGE, this request then calls the owner widget's convertProc trait method.
RETURN
This function returns False if no transfers take place. Otherwise, it returns True.
RELATED
XmQTtransfer(3), XmTransferDone(3), XmTransferValue(3), XmeClipboardSink(3), XmeClipboardSource(3), XmeConvertMerge(3), XmeDragSource(3), XmeDropSink(3), XmeGetEncodingAtom(3), XmePrimarySource(3), XmeSecondarySink(3), XmeSecondarySource(3), XmeSecondaryTransfer(3), XmeStandardConvert(3), XmeStandardTargets(3), and XmeTransferAddDoneProc(3).