DragSource.setActions

Sets the actions on the GtkDragSource.

During a DND operation, the actions are offered to potential drop targets. If @actions include %GDK_ACTION_MOVE, you need to listen to the [signal@Gtk.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 [signal@Gtk.DragSource::prepare] signal.

class DragSource
void
setActions

Parameters

actions GdkDragAction

the actions to offer

Meta