Package: gtk
Function gtk:drag-begin
Lambda Listgtk:drag-begin (widget targets actions button event) ArgumentsReturn ValueThe gdk:drag-context object for this drag. Details
Initiates a drag on the source side.
The function only needs to be used when the application is starting drags itself, and is not needed when the gtk:drag-source-set function is used. The event argument is used to retrieve the timestamp that will be used internally to grab the pointer. If the event argument is nil, then the gdk:+current-time+ value will be used. However, you should try to pass a real event in all cases, since that can be used by GTK to get information about the start position of the drag, for example if the event is a :motion-notify event. Generally there are three cases when you want to start a drag by hand by calling this function:
Warning | See also |
#2023-3-17