Method

GtkSelectionDataset_text

Declaration [src]

gboolean
gtk_selection_data_set_text (
  GtkSelectionData* selection_data,
  const gchar* str,
  gint len
)

Description [src]

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

Parameters

str const gchar*
 

A UTF-8 string.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
len gint
 

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

Return value

Returns: gboolean
 

TRUE if the selection was successfully set, otherwise FALSE.