Method
GtkTreeViewenable_model_drag_source
Declaration [src]
void
gtk_tree_view_enable_model_drag_source (
GtkTreeView* tree_view,
GdkModifierType start_button_mask,
const GtkTargetEntry* targets,
gint n_targets,
GdkDragAction actions
)
Description [src]
Turns tree_view into a drag source for automatic DND. Calling this
method sets GtkTreeView:reorderable to FALSE.
Parameters
start_button_mask-
Type:
GdkModifierTypeMask of allowed buttons to start drag.
targets-
Type: An array of
GtkTargetEntryThe table of targets that the drag will support.
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.