Clipboard.setWithOwner

Virtually sets the contents of the specified clipboard by providing a list of supported formats for the clipboard data and a function to call to get the actual data when it is requested.

The difference between this function and Clipboard.setWithData is that instead of an generic user_data pointer, a GObject is passed in.

Parameters

targets TargetEntry[]

array containing information about the available forms for the clipboard data

getFunc GtkClipboardGetFunc

function to call to get the actual clipboard data

clearFunc GtkClipboardClearFunc

when the clipboard contents are set again, this function will be called, and get_func will not be subsequently called

owner ObjectG

an object that “owns” the data. This object will be passed to the callbacks when called

Return Value

Type: bool

TRUE if setting the clipboard data succeeded. If setting the clipboard data failed the provided callback functions will be ignored.