Package: gtk

Accessor gtk-icon-view-reorderable

Lambda List

gtk-icon-view-reorderable (object)

Syntax

(gtk-icon-view-reorderable object) => reorderable
(setf (gtk-icon-view-reorderable object) reorderable)

Arguments

object -- a gtk-icon-view widget
reorderable -- true, if the list of items can be reordered

Details

Accessor of the reorderable slot of the gtk-icon-view class.

The slot access function gtk-icon-view-reorderable retrieves whether the user can reorder the list via drag and drop. The slot access function (setf gtk-icon-view-reorderable) sets whether the user can reorder the list. This function is a convenience function to allow you to reorder models that support the gtk-tree-drag-source and the gtk-tree-drag-dest interfaces.

Both gtk-tree-store and gtk-list-store objects support these. If reorderable is true, then the user can reorder the model by dragging and dropping rows. The developer can listen to these changes by connecting to the model's "row-inserted" and "row-deleted" signals. The reordering is implemented by setting up the icon view as a drag source and destination. Therefore, drag and drop can not be used in a reorderable view for any other purpose.

This function does not give you any degree of control over the order - any reordering is allowed. If more control is needed, you should probably handle drag and drop manually.
 

See also

2021-3-9