setup_drop_target


Description:

public void setup_drop_target (DragAction actions, Type[]? types)

Sets up a drop target on the items.

This allows to drag arbitrary content onto items.

The [signal@Sidebar:AdwSidebar:drop] signal can be used to handle the drop.

Parameters:

this

a sidebar

actions

the supported actions

types

all supported `GType`s that can be dropped

n_types

number of types