Function

Gdkdrag_begin_for_device

Declaration [src]

GdkDragContext*
gdk_drag_begin_for_device (
  GdkWindow* window,
  GdkDevice* device,
  GList* targets
)

Description [src]

Starts a drag and creates a new drag context for it.

This function is called by the drag source.

Parameters

window

Type: GdkWindow

The source window for this drag.

The data is owned by the caller of the function.
device

Type: GdkDevice

The device that controls this drag.

The data is owned by the caller of the function.
targets

Type: A list of GdkAtom

The offered targets, as list of GdkAtoms.

The data is owned by the caller of the function.

Return value

Type: GdkDragContext

A newly created GdkDragContext.

The caller of the function takes ownership of the data, and is responsible for freeing it.