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 for the actions to offer

Details

The accessor for the actions slot of the gtk:drag-source class gets or sets the actions that are supported by drag operations from the source.

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

2025-08-23