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.

class Clipboard
bool
waitForTargets

Parameters

targets GdkAtom[]

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

Return Value

Type: bool

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

Meta