Function

Gtktarget_table_new_from_list

since: 2.10

Declaration [src]

GtkTargetEntry*
gtk_target_table_new_from_list (
  GtkTargetList* list,
  gint* n_targets
)

Description [src]

This function creates an GtkTargetEntry array that contains the same targets as the passed %list. The returned table is newly allocated and should be freed using gtk_target_table_free() when no longer needed.

Available since: 2.10

Parameters

list

Type: GtkTargetList

A GtkTargetList.

The data is owned by the caller of the function.
n_targets

Type: gint*

Return location for the number ot targets in the table.

The argument will be set by the function.

Return value

Type: An array of GtkTargetEntry

The new table.

The length of the array is in the n_targets argument.
The caller of the function takes ownership of the data, and is responsible for freeing it.