Method

Adw.TabBar.setup_extra_drop_target

Declaration [src]

void
adw_tab_bar_setup_extra_drop_target (
  AdwTabBar* self,
  GdkDragAction actions,
  GType* types,
  gsize n_types
)

Description [src]

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 AdwTabBar::extra-drag-drop signal can be used to handle the drop.

Available since:1.0

Parameters

actions GdkDragAction
 

the supported actions

types An array of GType
 

all supported GTypes that can be dropped

 Can be NULL
 The length of the array is in the n_types argument
 The data is owned by the caller of the function
n_types gsize
 

number of types