setup_extra_drop_target


Description:

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

Sets the supported types for this drop target.

Sets up an extra drop target on tabs.

This allows to drag arbitrary content onto tabs, for example URLs in a web browser.

If a tab is hovered for a certain period of time while dragging the content, it will be automatically selected.

The [signal@TabBar:AdwTabBar:extra-drag-drop] signal can be used to handle the drop.

Parameters:

this

a tab bar

actions

the supported actions

types

all supported `GType`s that can be dropped

n_types

number of types




2022 vala-language.org