get_targets


Description:

public bool get_targets (out Atom[] targets)

Gets the contents of this as an array of targets.

This can be used to interpret the results of getting the standard TARGETS target that is always supplied for any selection.

Parameters:

this

a SelectionData object

targets

location to store an array of targets. The result stored here must be freed with g_free.

n_atoms

location to store number of items in targets.

Returns:

true if this contains a valid array of targets, otherwise false.