Function

Gtk.DragIcon.create_widget_for_value

Declaration [src]

GtkWidget*
gtk_drag_icon_create_widget_for_value (
  const GValue* value
)

Description [src]

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

Supported types include strings, GdkRGBA and GtkTextBuffer. 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’n’drop operations started by GtkDragSource, so you don’t need to set a drag icon using this function there.

Parameters

value const GValue*
 

a GValue

 Ownership is not transferred to the callee

Return value

Returns: GtkWidget

A new GtkWidget for displaying value as a drag icon.

Ownership of the data is transferred to the caller
Can be NULL