Method

GtkTreePathget_indices_with_depth

since: 3.0

Declaration [src]

gint*
gtk_tree_path_get_indices_with_depth (
  GtkTreePath* path,
  gint* depth
)

Description [src]

Returns the current indices of path.

This is an array of integers, each representing a node in a tree. It also returns the number of elements in the array. The array should not be freed.

Available since: 3.0

This method is renamed to gtk_tree_path_get_indices() in language bindings.

Parameters

depth

Type: gint*

Return location for number of elements returned in the integer array, or NULL.

The argument will be set by the function.
The argument can be NULL.

Return value

Type: An array of gint

The current indices, or NULL.

The length of the array is in the depth argument.
The returned data is owned by the instance.