Function

GtkTargetListnew

Declaration [src]

GtkTargetList*
gtk_target_list_new (
  const GtkTargetEntry* targets,
  guint ntargets
)

Description [src]

Creates a new GtkTargetList from an array of GtkTargetEntry.

Parameters

targets An array of GtkTargetEntry
 

Pointer to an array of GtkTargetEntry.

 The argument can be NULL.
 The length of the array is specified in the ntargets argument.
 The data is owned by the caller of the function.
ntargets guint
 

Number of entries in targets.

Return value

Returns: GtkTargetList
 

The new GtkTargetList.

 The caller of the function takes ownership of the data, and is responsible for freeing it.