Package: gtk

Function gtk-drag-set-icon-name

Lambda List

gtk-drag-set-icon-name (context name x y)

Arguments

context -- a gdk-drag-context object for a drag, this must be called with a drag context for the source side of a drag
name -- a string with the name of the icon to use
x -- an integer with the x offset of the hotspot within the icon
y -- an integer with the y offset of the hotspot within the icon

Details

Sets the icon for a given drag from a named themed icon. See the docs for the gtk-icon-theme implementation for more details. Note that the size of the icon depends on the icon theme, the icon is loaded at the :dnd symbolic size, thus the x and y arguments have to be used with care.
 

See also

2021-10-3