Package: gtk

Function gtk-drag-cancel

Lambda List

gtk-drag-cancel (context)

Arguments

context -- a gdk-drag-context object, as e.g. returned by the gtk-drag-begin-with-coordinates function

Details

Cancels an ongoing drag operation on the source side.

If you want to be able to cancel a drag operation in this way, you need to keep a pointer to the drag context, either from an explicit call to the gtk-drag-begin-with-coordinates function, or by connecting to the "drag-begin" signal.

If the context argument does not refer to an ongoing drag operation, this function does nothing.

If a drag is cancelled in this way, the result argument of the "drag-failed" handler is set to the :error value.
 

See also

2021-10-3