A toolkit function that transfers data from the named selection to a widget
Format
#include <Xm/TransferP.h> Boolean XmeNamedSinkWidget widgetAtom named_selectionXtEnum opXtPointer location_dataTime time
DESCRIPTION
XmeNamedSink transfers data from the specified selection to a widget.
This routine initializes an XmDestinationCallbackStruct with the selection member set to named_selection, the operation member set to the value of the op argument, the location_data member set to the value of the location_data argument, and the time member set to the value of the time argument. The location_data value contains information about the location where data is to be transferred. If the value is NULL, the data is to be inserted at the widget's cursor position. Otherwise, the type and interpretation of the value are specific to the widget class.
This routine calls the widget's destinationPreHookProc XmQTtransfer trait method with this XmDestinationCallbackStruct. It then calls the widget's XmNdestinationCallback procedures, if any. Unless an XmNdestinationCallback procedure has called XmTransferDone with a status other than XmTRANSFER_DONE_DEFAULT, this routine calls the widget's destinationProc XmQTtransfer trait method after all transfers initiated by callback procedures have finished. It is the responsibility of the XmNdestinationCallback procedures and the destinationProc method to transfer any data to the widget.
If op is XmMOVE and the data is successfully transferred, XmeNamedSink asks the owner of the selection named by named_selection to convert that selection to the DELETE target. If the selection owner has called XmeNamedSource 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's convertProc XmQTtransfer 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), XmeNamedSource(3), XmeSecondarySink(3), XmeSecondarySource(3), XmeSecondaryTransfer(3), XmeStandardConvert(3), XmeStandardTargets(3), and XmeTransferAddDoneProc(3).