DragSource.setActions

void setActions(gdk.types.DragAction actions)

Sets the actions on the [gtk.drag_source.DragSource].

During a DND operation, the actions are offered to potential drop targets. If actions include [gdk.types.DragAction.Move], you need to listen to the signalGtk.DragSource::drag-end signal and handle delete_data being true.

This function can be called before a drag is started, or in a handler for the [gtk.drag_source.DragSource.prepare] signal.

Parameters

actionsthe actions to offer