Selections.dataGetText

Gets the contents of the selection data as a UTF-8 string.

class Selections
static
char*
dataGetText

Parameters

selectionData GtkSelectionData*

a GtkSelectionData

Return Value

Type: char*

if the selection data contained a recognized text type and it could be converted to UTF-8, a newly allocated string containing the converted text, otherwise NULL. If the result is non-NULL it must be freed with g_free().

Meta