Method

GtkWidgetdrag_begin

deprecated: 3.10 

Declaration [src]

GdkDragContext*
gtk_drag_begin (
  GtkWidget* widget,
  GtkTargetList* targets,
  GdkDragAction actions,
  gint button,
  GdkEvent* event
)

Description [src]

This function is equivalent to gtk_drag_begin_with_coordinates(), passing -1, -1 as coordinates.

Deprecated since: 3.10

Use gtk_drag_begin_with_coordinates() instead.

Parameters

targets

Type: GtkTargetList

The targets (data formats) in which the source can provide the data.

The data is owned by the caller of the method.
actions

Type: GdkDragAction

A bitmask of the allowed drag actions for this drag.

button

Type: gint

The button the user clicked to start the drag.

event

Type: GdkEvent

The event that triggered the start of the drag, or NULL if none can be obtained.

The argument can be NULL.
The data is owned by the caller of the method.

Return value

Type: GdkDragContext

The context for this drag.

The returned data is owned by the instance.