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 of source, or nil

Details

Accessor of the content slot of the gtk:drag-source class. The gtk:drag-source-content function gets the current content provider of a gtk:drag-source object. The (setf gtk:drag-source-content) function sets a content provider. 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

2024-11-2