Method

GtkSelectionDataget_text

Declaration [src]

guchar*
gtk_selection_data_get_text (
  const GtkSelectionData* selection_data
)

Description [src]

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

Return value

Type: guchar*

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().

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.