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 GdkModifierType
 

The bitmask of buttons that can start the drag.

targets An array of GtkTargetEntry
 

The 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_targets argument.
 The data is owned by the caller of the function.
n_targets gint
 

The number of items in targets.

actions GdkDragAction
 

The bitmask of possible actions for a drag from this widget.