Method

GtkIconViewenable_model_drag_dest

Declaration [src]

void
gtk_icon_view_enable_model_drag_dest (
  GtkIconView* icon_view,
  const GtkTargetEntry* targets,
  gint n_targets,
  GdkDragAction actions
)

Description [src]

Turns icon_view into a drop destination for automatic DND. Calling this method sets GtkIconView:reorderable to FALSE.

Available since:2.8

Parameters

targets

Type: An array of GtkTargetEntry

The table of targets that the drag will support.

The length of the array is specified in the n_targets argument.
The data is owned by the caller of the function.
n_targets

Type: gint

The number of items in targets.

actions

Type: GdkDragAction

The bitmask of possible actions for a drag to this widget.