Package: gtk

Function gtk:drag-dest-find-target

Lambda List

gtk:drag-dest-find-target (widget context &optional tlist)

Arguments

widget -- a gtk:widget drag destination widget
context -- a gdk:drag-context object
tlist -- a gtk:target-list instance with the droppable targets, or nil, the default value, to use the gtk:drag-dest-target-list function

Return Value

First target that the source offers and the destination can accept, or the :none value.

Details

Looks for a match between the supported targets of the drag context and the target list, returning the first matching target, otherwise returning the :none value. The target list should usually be the return value from the gtk:drag-dest-target-list function, but some widgets may have different valid targets for different parts of the widget. In that case, they will have to implement a "drag-motion" handler that passes the correct target list to this function.
 

See also

#2024-3-24