Package: gtk

Function gtk:drag-source-set-icon

Lambda List

gtk:drag-source-set-icon (source paintable xhot yhot)

Arguments

source -- a gtk:drag-source object
paintable -- a gdk:paintable object to use as icon, or nil
xhot -- an integer with the hotspot x coordinate on the icon
yhot -- an integer with the hotspot y coordinate on the icon

Details

Sets a paintable to use as icon during DND operations. The hotspot coordinates determine the point on the icon that gets aligned with the hotspot of the cursor. If paintable is nil, a default icon is used.

This function can be called before a drag is started, or in a "prepare" or "drag-begin" signal handler.
 

See also

#2023-7-31