wait_for_targets


Description:

[ Version ( since = "2.4" ) ]
public bool wait_for_targets (out Atom[] targets)

Returns a list of targets that are present on the clipboard, or null if there aren’t any targets available.

The returned list must be freed with g_free. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.

Parameters:

this

a Clipboard

targets

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

n_targets

location to store number of items in targets.

Returns:

true if any targets are present on the clipboard, otherwise false.