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-
Type:
GdkWindowThe source window for this drag.
The data is owned by the caller of the function. targets-
Type: A list of
GdkAtomThe 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. |