DragSource.setActions

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.

class DragSource
void
setActions

Parameters

actions gdk.types.DragAction

the actions to offer