wait_for_rich_text


Description:

[ CCode ( array_length_pos = 2.1 , array_length_type = "gsize" ) ]
[ Version ( since = "2.10" ) ]
public uint8[]? wait_for_rich_text (TextBuffer buffer, out Atom format)

Requests the contents of the clipboard as rich text.

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

buffer

a TextBuffer

format

return location for the format of the returned data

length

return location for the length of the returned data

Returns:

a newly-allocated binary block of data which must be freed with g_free, or null if retrieving the selection data failed. (This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into text form.)