allow_dnd_sorting


Description:

public abstract bool allow_dnd_sorting ()

Whether this item will allow users to re-arrange its children via DnD.

This feature can co-exist with a sort algorithm (implemented by Granite.Widgets.SourceListSortable.compare), but the actual order of the items in the list will always honor that method. The sort function has to be compatible with the kind of DnD reordering the item wants to allow, since the user can only reorder those items for which compare returns 0.

Returns:

Whether the item's children can be re-arranged by users.

Since:

0.3




2022 vala-language.org