Package: gtk

Function gtk:tree-view-set-column-drag-function

Lambda List

gtk:tree-view-set-column-drag-function (view func)

Arguments

view -- a gtk:tree-view widget
func -- a gtk:tree-view-column-drop-func callback function to determine which columns are reorderable, or nil

Details

Sets a user gtk:tree-view-column-drop-func callback function for determining where a column may be dropped when dragged. This function is called on every column pair in turn at the beginning of a column drag to determine where a drop can take place. The arguments passed to func are: a gtk:tree-view widget, a gtk:tree-view-column object being dragged, and the two gtk:tree-view-column objects determining the drop spot. If either of the gtk:tree-view-column arguments for the drop spot are nil, then they indicate an edge. If func is set to be nil, then view reverts to the default behavior of allowing all columns to be dropped everywhere.

Warning

The gtk:tree-view implementation is deprecated since 4.10. Please do not use it in newly written code.
 

See also

2024-3-10