Package: gtk

Function gtk:tree-view-enable-model-drag-dest

Lambda List

gtk:tree-view-enable-model-drag-dest (view targets actions)

Arguments

view -- a gtk:tree-view widget
targets -- a list of (target flags info) target entries that the drag will support
target -- a string representation of the target type
flags -- a gtk:target-flags value for DND
info -- an application assigned integer ID
actions -- a gdk:drag-action value with the bitmask of possible actions for a drag from this widget

Details

Turns the tree view into a drop destination for automatic DND. Calling this method sets the reorderable property to the false value. See the gtk:target-list structure and the gtk:target-list-new function for more documentation of target entries.

Examples

(let ((targets '(("text/html" :none 0)
                 ("STRING" :none 1)
                 ("number" :none 2)
                 ("image/jpeg" :none 3)
                 ("text/uri-list" :none 4))))
    (gtk:tree-view-enable-model-drag-dest view targets :copy)
    ... )    
 

See also

2024-3-13