wait_for_targets
Description:
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 | |
| 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 |
Returns:
|
true if any targets are present on the clipboard, otherwise false. |