Package: gdk

Function gdk-drag-context-manage-dnd

Lambda List

gdk-drag-context-manage-dnd (context window actions)

Arguments

context -- a gdk-drag-context object
window -- a gdk-window object to use for IPC messaging/events
actions -- the gdk-drag-action flags supported by the drag source

Return Value

True if the drag and drop operation is managed.

Details

Requests the drag and drop operation to be managed by context. When a drag and drop operation becomes managed, the gdk-drag-context object will internally handle all input and source-side gdk-event-dnd events as required by the windowing system.

Once the drag and drop operation is managed, the drag context will emit the following signals:
  • The "action-changed" signal whenever the final action to be performed by the drag and drop operation changes.
  • The "drop-performed" signal after the user performs the drag and drop gesture, typically by releasing the mouse button.
  • The "dnd-finished" signal after the drag and drop operation concludes, after all GDK selection transfers happen.
  • The "cancel" signal if the drag and drop operation is finished but does not happen over an accepting destination, or is cancelled through other means.
Since 3.20
 

See also

2021-10-3