Selections.dataSetText

Sets the contents of the selection from a UTF-8 encoded string. The string is converted to the form determined by selection_data->target.

class Selections
static
int
dataSetText

Parameters

selectionData GtkSelectionData*

a GtkSelectionData

str string

a UTF-8 string

len int

the length of str, or -1 if str is nul-terminated.

Return Value

Type: int

TRUE if the selection was successfully set, otherwise FALSE.

Meta