Package: gtk

Accessor gtk:drag-source-content

Lambda List

gtk:drag-source-content (object)

Syntax

(gtk:drag-source-content object) => content
(setf (gtk:drag-source-content object) content)

Arguments

object -- a gtk:drag-source object
content -- a gdk:content-provider object for the drag source, or nil

Details

The accessor for the content slot gets or sets the data that is offered by drag operations from this drag source, in the form of a gdk:content-provider object. When the data is requested in the cause of a DND operation, it will be obtained from the content provider.

This function can be called before a drag is started, or in a handler for the "prepare" signal. You may consider setting the content provider back to nil in a "drag-end" signal handler.
 

See also

2026-08-30