Package: gtk

Accessor gtk:drag-source-actions

Lambda List

gtk:drag-source-actions (object)

Syntax

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

Arguments

object -- a gtk:drag-source object
actions -- a gdk:drag-action value with the actions to offer

Details

Accessor of the actions slot of the gtk:drag-source class. The gtk:drag-source-actions function gets the actions that are currently set on the gtk:drag-source object. The (setf gtk:drag-source-actions) function sets the actions.

During a DND operation, the actions are offered to potential drop targets. If actions include :move, you need to listen to the "drag-end" signal and handle the delete argument being true.

This function can be called before a drag is started, or in a handler for the "prepare" signal.
 

See also

2024-11-2