DragAndDrop.getData

Gets the data associated with a drag. When the data is received or the retrieval fails, GTK+ will emit a "drag-data-received" signal. Failure of the retrieval is indicated by the length field of the selection_data signal parameter being negative. However, when gtk_drag_get_data() is called implicitely because the GTK_DEST_DEFAULT_DROP was set, then the widget will not receive notification of failed drops.

class DragAndDrop
static
void
getData

Parameters

widget Widget

the widget that will receive the "drag-data-received" signal.

context DragContext

the drag context

target GdkAtom

the target (form of the data) to retrieve.

time uint

a timestamp for retrieving the data. This will generally be the time received in a "drag-motion"" or "drag-drop"" signal.

Meta