Clipboard.waitForTargets

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. Since 2.4

class Clipboard
int
waitForTargets

Parameters

targets GdkAtom[]

location to store an array of targets. The result stored here must be freed with g_free(). out[array length=n_targets][transfer container]

Return Value

Type: int

TRUE if any targets are present on the clipboard, otherwise FALSE.

Meta