Function

Gdkdrag_begin

Declaration [src]

GdkDragContext*
gdk_drag_begin (
  GdkWindow* window,
  GList* targets
)

Description [src]

Starts a drag and creates a new drag context for it. This function assumes that the drag is controlled by the client pointer device, use gdk_drag_begin_for_device() to begin a drag with a different device.

This function is called by the drag source.

Parameters

window GdkWindow
 

The source window for this drag.

 The data is owned by the caller of the function.
targets A list of GdkAtom
 

The offered targets, as list of GdkAtoms.

 The data is owned by the caller of the function.

Return value

Returns: GdkDragContext
 

A newly created GdkDragContext.

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