DragIcon.createWidgetForValue

gtk.widget.Widget createWidgetForValue(gobject.value.Value value)

Creates a widget that can be used as a drag icon for the given value.

Supported types include strings, [gdk.rgba.RGBA] and [gtk.text_buffer.TextBuffer]. If GTK does not know how to create a widget for a given value, it will return null.

This method is used to set the default drag icon on drag-and-drop operations started by [gtk.drag_source.DragSource], so you don't need to set a drag icon using this function there.

Parameters

valuea [gobject.value.Value]

Returns

A new [gtk.widget.Widget]

for displaying value as a drag icon.