Method
GtkWidgetdrag_begin
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 |
Parameters
targets |
GtkTargetList |
The targets (data formats) in which the source can provide the data. |
|
The data is owned by the caller of the function. | |
actions |
GdkDragAction |
A bitmask of the allowed drag actions for this drag. |
|
button |
gint |
The button the user clicked to start the drag. |
|
event |
GdkEvent |
The event that triggered the start of the drag,
or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. |
Return value
Returns: | GdkDragContext |
The context for this drag. |
|
The data is owned by the instance. |