Method
GtkWidgetdrag_source_set
Declaration [src]
void
gtk_drag_source_set (
GtkWidget* widget,
GdkModifierType start_button_mask,
const GtkTargetEntry* targets,
gint n_targets,
GdkDragAction actions
)
Description [src]
Sets up a widget so that GTK+ will start a drag operation when the user clicks and drags on the widget. The widget must have a window.
Parameters
start_button_mask-
Type:
GdkModifierTypeThe bitmask of buttons that can start the drag.
targets-
Type: An array of
GtkTargetEntryThe table of targets that the drag will support, may be
NULL.The argument can be NULL.The length of the array is specified in the n_targetsargument.The data is owned by the caller of the method. n_targets-
Type:
gintThe number of items in
targets. actions-
Type:
GdkDragActionThe bitmask of possible actions for a drag from this widget.